2011-02-19 130 views
1

我想使用UISwitch控制器,但将其默认文本设置为“是/否”而不是“开/关”。什么是最简单的方法来做到这一点?那是可行的吗?uiswitch默认文本更改

回答

4

不幸的是德语,但源代码是可读的,它工作得很好:

http://www.mobile-dev.de/iphone-code-schnipsel/34-iphone-user-interface/192-aendern-des-textes-von-uiswitch-elementen.html

但是,你应该阅读文档:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UISwitch_Class/Reference/Reference.html

The UISwitch class is not customizable.

我不知道这是否被允许,你会在中遇到麻烦苹果审批流程。

+0

感谢您的快速回答! – jason