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

后端 未结 6 1603
太阳男子
太阳男子 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 07:03

    This isn't possible using UIKit. I would recommend creating a custom control, or an array of UISwitch controls, representing each of the options in your UISegmentedControl.

提交回复
热议问题