2

Can the UISegmentedControl allow multiple selection of segments? Otherwise should we create custom controls?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
  • possible duplicated to http://stackoverflow.com/questions/1029570/how-can-i-enable-multiple-segments-of-a-uisegmentedcontrol-to-be-selected – Twitter khuong291 Feb 05 '16 at 02:39
  • You can custom with buttons. – Twitter khuong291 Feb 05 '16 at 02:40
  • If [my answer](https://stackoverflow.com/a/39714308/5501940) resolved your issue, please don't forget to accept it (green tick it) :) FYI, accepting an answer leads to: - gives the answerer +15 reputation points. - gives you (asker) +2 reputation points. - And the most important thing, it gives an indication for the viewers that this answer is the appropriate solution for this issue. – Ahmad F Jan 28 '18 at 15:29

1 Answers1

6

By default, UISegmentedControl does not support multiple selection.

For such a case, a custom control should be the desired solution; I would recommend to check ATHMultiSelectionSegmentedControl library, it does provided the desired behavior of what are you looking for, it is easy to use and now it is compatible with the latest Swift version (which is 3 at the time I posted my answer).

Ahmad F
  • 30,560
  • 17
  • 97
  • 143