1

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?

Community
  • 1
  • 1
Zach
  • 9,989
  • 19
  • 70
  • 107

2 Answers2

3

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.

Dominic
  • 3,304
  • 19
  • 22
  • Just to add mine: http://xcodenoobies.blogspot.com/2013/04/free-custom-uiswitch-flexible-colors.html which is more flexible in colors and size. – GeneCode Apr 06 '13 at 09:29
-6

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

Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76