开发者

Is it possible to recolor iPhone SDK's UISwitch?

开发者 https://www.devze.com 2022-12-27 00:52 出处:网络
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 buil

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

精彩评论

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

关注公众号