Multiple selection of segments in UISegmentedControl

家住魔仙堡 提交于 2019-12-22 13:55:11

问题


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



来源:https://stackoverflow.com/questions/35215378/multiple-selection-of-segments-in-uisegmentedcontrol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!