Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Triple UISwitch

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

like image 793
arielcamus Avatar asked Dec 02 '22 06:12

arielcamus


2 Answers

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.

like image 94
Felix Lamouroux Avatar answered Dec 22 '22 09:12

Felix Lamouroux


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

like image 37
Noah Witherspoon Avatar answered Dec 22 '22 11:12

Noah Witherspoon