Swift:使UISegmentedView无法使用

时间:2016-06-18 02:45:14

标签: ios swift2 uisegmentedcontrol

非常自我解释的标题:快速使UISegmentedView无法编辑。这意味着用户将无法更改所选的细分。

2 个答案:

答案 0 :(得分:1)

如果您想停止segmentdControl的互动,请尝试这样做。

self.segmentedControl.userInteractionEnabled = false;

希望这会对你有所帮助。

答案 1 :(得分:0)

使用userInterractionEnable = false设置所有类型的UIView UIControl交互。

相关问题