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コントローラーを使用しようとしていますが、デフォルトのテキストを「オン/オフ」ではなく「はい/いいえ」に設定しています。それを行う最も簡単な方法は何ですか?まあそれは実行可能ですか?
残念ながらドイツ語ではありますが、ソースコードは読みやすく、うまく機能します。
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.
それが許可されているかどうかはわかりませんが、Appleの承認プロセスで問題が発生します。