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

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.


I think the simplest way is to create your own segmentedcontrol with UIButton.

Marco


Update: The custom control I mentioned here no longer works under iOS 13.

This is the best custom control I've found that allows multiple segments to be selected concurrently:

https://github.com/yonat/MultiSelectSegmentedControl

This one is a subclass of UISegmentedControl, which is convenient. I've forked it here:

https://github.com/stewartmacdonald/MultiSelectSegmentedControl

and added some code examples to the ReadMe and added a method that allows you to get an NSArray of the titles of all selected segments.