gpt4 book ai didi

ios - 防止 UISegmentedControl 更改

转载 作者:行者123 更新时间:2023-11-30 12:18:30 24 4
gpt4 key购买 nike

如何防止分段控件更改而不将其设置为禁用。基本上我需要像shouldChangeSegment这样的东西。在某些情况下,我需要显示警报消息并防止段更改。

最佳答案

设置disabled = true是正常的方法。没有 shouldChangeSegment 类型委托(delegate)方法。

您还应该能够设置userInteractionEnabled = false

使用disabled = true有什么问题吗?

关于ios - 防止 UISegmentedControl 更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45104204/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com