I want to create a custom UISwtich with three positions. Is it possible?
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.
Not using the built-in UISwitch. You'll need to roll your own.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With