2011-09-27 67 views
1

我想更改開關控制文本YES/NO來代替ON/OFF,我不知道它是否可行。如果有可能和任何人知道它,請幫助我?更改UISwitch的文本

感謝

回答

5

我認爲它不可能改變有道開關的文本,但每一個問題都有最小的一個解決方案,使你的問題,你必須創建一個幫助下載從代碼中的自定義開關控制

這裏 1:http://www.xprogress.com/post-30-uiswitch-tutorial-example-how-to-use-the-switch-in-xcode-for-iphone-sample-included/

2:http://www.catamount.com/blog/1063/uicustomswitch-customizing-uiswitch-color-it-change-labels/

3:幫助還檢查了這http://www.xprogress.com/post-30-uiswitch-tutorial-example-how-to-use-the-switch-in-xcode-for-iphone-sample-included/

感謝, 拉吉

2

我目前使用這個開源庫稱爲RCSwitch定製UISwitch。比其他人提到的要強壯得多。