Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi-Lined UISegmentedControl

How can I make a multi lined UISegmentedControl. I need it to have 6 buttons, 3 on each line. How can I do this programatically?

like image 381
CodeGuy Avatar asked Dec 11 '25 03:12

CodeGuy


1 Answers

You will need to use two of them, using the selectedSegmentIndex property. If, when you get an action from one control, you set the value of the other control's property to -1 it will effectively give you a bank of six buttons in two rows that appear to be linked together as one group.