简体   繁体   English

UISwitch不以其他语言显示开/关

[英]UISwitch not displaying on/off in other languages

I am using a UISwitch in the ViewController, it displays as ON and OFF, but when I change to different language like french and spanish , the UISwitch is displayin as 1/0 . 我在ViewController中使用UISwitch,它显示为ON和OFF,但是当我更改为法语和西班牙语等其他语言时,UISwitch显示为1/0。 What is the reason ? 是什么原因 ? How to solve it ? 怎么解决呢?

Find the answer here . 这里找到答案。 You no need to worry. 不用担心 Its common in iOS all over the world. 它在全世界的iOS中很常见。

you can try this custom switch, 您可以尝试使用此自定义开关,

https://github.com/domesticcatsoftware/DCRoundSwitch https://github.com/domesticcatsoftware/DCRoundSwitch

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM