Triple UISwitch

cocoa-touch, iphone, uiswitch

Solution

You should be using `UISegmentedControl`if 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.

Problem

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

Original source