Swift段控制如何select多个段

Swift Segment Control how to select more than one segment

我的应用程序中有一个段控件,我希望用户能够单击多个段。我用谷歌搜索,找不到任何相关信息,而且 Xcode 中没有复选框用于 'Allow multiple selection' 之类的东西。我发现在 objective-c 中你无法做到这一点,这对 swift 来说仍然是一样的吗?如果是,是否有其他东西可以做我想做的事情。

任何帮助将不胜感激

来自Apple Documentation

Content for each segment is set individually. Using the Segment field, you can select a particular segment to modify its content.

所以不能选择多个段进入Segmented Control。

有关详细信息,请阅读该文档。