Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法来禁用要选择的分段控件(5 段,代表“进度条”),因为我正在使用它来显示参数的速率。
有没有一种简单的方法可以做到这一点?
非常感谢!
您可以简单地使用设置它:mySegment.selectedSegmentIndex = 3;
mySegment.selectedSegmentIndex = 3;
[self.segmentedControl setEnabled:YES forSegmentAtIndex:0];