custom controls - A specific UIControl based around UISlider for iPhone

I need to show a specific bit of data to the screen and it is most easily represented as an adaptation of something like a UISlider.

It will represent a range of related (numerical) answers between 0.0 and 10.0. The data I wish to show is the minimum, maximum and mean. However, I need to do this without revealing the numbers.

It is currently done (on a web browser) with a control that looks like this...


Where the shaded area shows the min-max range and the @ represents the slider thumb and is set to the mean.

Before I started trying to wrap my head around programming this I was wondering if you might be able to provide any pointers as to where I can start with this?

Thanks for any help you can offer.



1 Answer

  1. John- Reply


    I wouldn't try to set this up based on the standard slider (couldn't think of a clean way to do this anyway) - and i wouldn't make it looking too similar, too. Apple is very keen on "defending" the way their UI concept is perceived by users. So i suppose they maybe wouldn't approve an app with a slider that has been "hijacked" to be only a meter, not a control - or something that looks like it, for that matter.

    Maybe you'll find something in the wwww where you could base your work on, but if I were you, I'd start this element from scratch, maybe using artwork and ressources from the webbased version. This would be the most straightforward way and will give you exactly what you need..

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>