Possible Duplicate:
Changing of UISwitch text in iOS 4.2
Hi, I want to change the text of UISwitch to YES/NO. Is it possible? I have seen some sample codes but nothing seems to work in IOS4.2.Could someone help please?
Possible Duplicate:
Changing of UISwitch text in iOS 4.2
Hi, I want to change the text of UISwitch to YES/NO. Is it possible? I have seen some sample codes but nothing seems to work in IOS4.2.Could someone help please?
Yes ,you can change the color or text which will be like a UISwitch
and can be implemented with the help of a customized UIView class.
you can'nt customize UISwitch.
Inherit UICustomSwitch from UIView.
UICustomSwitch
There's a reimplementation of UISwitch in Sam Soffes' SSToolkit: http://cocoacontrols.com/platforms/ios/controls/ssswitch
It lets you change the on/off labels, as well as using an airplane mode style switch.