Hello!
I want to create a custom UISwtich with three positions. Is it possible?
Hello!
I want to create a custom UISwtich with three positions. Is it possible?
Not using the built-in UISwitch. You'll need to roll your own.
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.