How can I enable multiple segments of a UISegmentedControl to be selected?

后端 未结 6 1574
太阳男子
太阳男子 2021-01-04 06:44

Lets say my UISegmentedControl has 8 numbered segments. I would like for the user to be able to turn on 2, 3, or more of them at once. Toggling them. Essentially like a bits

6条回答
  •  再見小時候
    2021-01-04 06:58

    I recommend you try https://github.com/tayhalla/THSegmentedControl
    it is an actual subclass of UISegmentedControl so it fits nicely with Interface builder and everything.

提交回复
热议问题