Do you have any preference for colour picker styles?
A couple of people from the iOS conference last year have just made this open source...
http://abitofcode.com/2012/01/weve-open ... ur-picker/But I was trying to think of something (similar but different) that I can do on an iPhone.
I've come up with an idea (using HSV colours) that I think will work well.
The one in the link uses Hue around the outside with Saturation and Value (brightness) within the circle (Saturation is x-axis and value is y-axis).
You then tap outside the control to dismiss it and select the colour.
This is a bit large for the iPhone though. Do you guys have any ideas? I've come up with something that I will demo later (when I've got something working) but any input welcome.
The main problem I'm having is representing what is a solid cone (point down with the radius representing Saturation, the circumference represetning Hue and the height Value) in 2 dimensions. I was also trying to create a control that is easy to use and is self contained (i.e. doesn't have to open up a whole new screen to contain it).
My idea is to have a circle representing the selected colour. You can then tap to summon/dismiss. When summoned the Hue/Saturation colour circle "grows" out from behind the circle you tapped with a selector over the colour within the wheel (possibly "attached" to the middle circle). The wheel will be white immediately around the centre circle and full colour saturation aroundthe outside. As you move the selector the middle circle updates in real time. You can also press and slide up/down on the middle circle to change the Value (brightness). Sliding the Value will dynamically change the rest of the wheel to reflect the colours of that value. Then you tap the middle circle and the colour circle shrinks behind the middle circle leaving you with just the circle of the selected colour.
Rather than having a colour picker that changes the colour of a button etc... this would be a button that IS a colour selector.
It would have a full set of controls so that it could be used in any app just by calling it and placing it on the screen and the selected colour will be able to be accessed through delegate methods etc...
What do you guys think? I'll try prototype it tonight in a stand alone app.