Multiple selection of segments in UISegmentedContr

2019-05-24 15:03发布

问题:

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

回答1:

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).