Search code examples
xcodeios4xcode4uiswitch

Set text of UISwitch in XCode


How can I set the text of the left and right label of a UISwitch in XCode4 (iOS4) ?

Searched for a solution but need a simple direct solution in the sourcecode


Solution

  • Customizing the switch itself is I think impossible, and if possible only using private APIs, and could cause a lot of problems depending on the firmware. An App Store safe way is using a UISlider.