views:

180

answers:

3
+1  Q: 

Triple UISwitch

Hello!

I want to create a custom UISwtich with three positions. Is it possible?

+4  A: 

Not using the built-in UISwitch. You'll need to roll your own.

Noah Witherspoon
+2  A: 

Why not use a UISegmentedControl?

Deepak
+5  A: 

You should be using UISegmentedControlif you want a standard UI-Element or configure a UISlider with a range of 2:

slider.minimumValue = 0; 
slider.maximumValue = 2;
slider.continuous = NO;

And then set the minimumValueImage, maximumTrackImage and thumbImage to use appropriate images.

Felix
Using a UISegmentedControl is a great idea! The problem with UISlider is you have to touch on the ball to change the value and the experience is not so nice. I think I will use UISegmentedControl, thank you!
arielcamus