I am wondering how to make the typical "range selection" bar, as seen in Photoshop and many other applications. Cocoa/Cocoa Touch only provide the very basic slide bar.
A:
You could go crazy and handle it all yourself. You could create a UIView
, draw on it yourself, and implement touchesDidBegin
and touchDidEnd
.
Epsilon Prime
2009-12-08 22:12:15
+1
A:
It's just Cocoa, but might be a good starting point (if just for getting an idea on how to subclass Apple's slider as NSSlider and UISlider probably have quite a lot in common I assume): http:// developer.snowmintcs.com/controls/smdoubleslider/
In case you were actually looking for an element for gradient editing, you might like this BSD licensed "gradient compositing" element with support for color stops: http://apptree.net/gcgradient.htm
Both are not for Cocoa-Touch in particular, but porting them (or adopting them for their iPhone counterparts) shouldn't be that hard, I guess.
Regexident
2009-12-08 22:23:07