Changing of UISwitch text in iOS 4.2

前端 未结 5 949
名媛妹妹
名媛妹妹 2020-12-11 20:18

I am trying to change the text in UISwitch. The sample from the website ( Changing the text on a UISwitch ) works fine but when I upgrade my xcode to 3.2.5 and iOS 4.2, the

5条回答
  •  有刺的猬
    2020-12-11 21:17

    There still doesn't seem to be a supported way to change the TEXT yet, but you can change what is displayed by setting the onImage and offImage properties, introduced in iOS 6

    http://developer.apple.com/library/ios/documentation/uikit/reference/UISwitch_Class/Reference/Reference.html

提交回复
热议问题