Additions to Motivational, Memer

In Apps, Code on December 12, 2009 at 8:52 pm

I don’t know if anybody’s looked recently, but the color pickers in Motivational and Memer are a little limited, only providing a handful of colors chosen by yours truly. I’ve really wanted to change this so, last night in a fit of procrastination creativity, I wrote what I call the TJColorPickerViewController and added it to these Apps in lieu of the more major features coming to Advice Dogr and Sudoku Helper.

Here’s a screenshot of what it looks like.

You can see you’re provided a whole (blocky) spectrum of colors including grayscale along the bottom. An nice popup rectangle is shown when you start dragging, indicating which color you’re selecting, similar to the reticle shown when selected text in a UITextField.

And here’s the code for it, the first of many code snippets I plan on posting. Sorry for limited documentation, but all you really need to do it make a view controller implement TJColorPickerViewControllerDelegate and present it as a modal view controller. Some resources (TJSpectrumView) are also provided, pick ’em apart if you feel like it.

I’m uploading updates to Motivational and Memer with this in them very soon.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: