开发者

Is it possible to recolor iPhone SDK's UISwitch?

I would like to change the blue color of the UISwitch in iPhone SDK to another color but there is not a tintColor pro开发者_StackOverflow社区perty for this control. Is this possible?


Not using the built-in UISwitch; you'll have to roll your own UIControl subclass. If you're developing for 3.2 or later, UIPanGestureRecognizer and UITapGestureRecognizer are probably your friends; with earlier SDKs, you're gonna be doing a lot of manual touch handling.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜