【问题标题】:Is there any way to not gray/fade out the UISwitch when it's disabled in Swift?当它在 Swift 中被禁用时,有什么方法可以不让 UISwitch 变灰/淡出?
【发布时间】:2020-12-20 06:56:32
【问题描述】:

当 UISwitch 在 Swift 中被禁用时,有什么方法可以不让 UISwitch 变灰/淡出?只需关闭用户交互并保持“正常”的开/关外观即可。

【问题讨论】:

标签: ios swift uiswitch


【解决方案1】:

只要SWITCH.isUserInteractionEnabled = false

【讨论】:

    猜你喜欢
    • 2023-03-21
    • 1970-01-01
    • 2011-11-18
    • 1970-01-01
    • 2017-05-27
    • 2021-04-08
    • 2021-05-18
    • 2020-02-14
    • 1970-01-01
    相关资源
    最近更新 更多