Swift: 使 UISegmentedView 不可编辑
Swift: Make UISegmentedView uneditable
非常不言自明的标题:快速使 UISegmentedView 不可编辑。这意味着用户将无法更改所选细分。
如果你想停止与segmentdControl
的互动,试试这个。
self.segmentedControl.userInteractionEnabled = false;
希望对您有所帮助。
使用 userInterractionEnable = false 设置所有类型的 UIView UIControl 交互。
非常不言自明的标题:快速使 UISegmentedView 不可编辑。这意味着用户将无法更改所选细分。
如果你想停止与segmentdControl
的互动,试试这个。
self.segmentedControl.userInteractionEnabled = false;
希望对您有所帮助。
使用 userInterractionEnable = false 设置所有类型的 UIView UIControl 交互。