开发者

How to create custom UISwitch? [duplicate]

This question already has answers here: 开发者_如何学编程 Closed 11 years ago.

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?


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜