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.
我有一个带有开/关选项的经典 UISwitch。更改设备上的语言,我将有 1 / 0,但我仍然想要 ON/OFF,我已经搜索但我没有找到任何“快速”解决方案,你有什么想法吗?
谢谢。
这就是 Apple 设置 UISwitch 的默认行为的方式。您可以将其子类化以获得您想要的 - 但它可能不是您想要的快速解决方案。
我确实也发现了这个,可能有用:
更改 UISwitch 上的文本