开发者

Changing the color of the selected item in a UISegmentControl

I have a UISe开发者_如何学CgmentedControl with a black tint so the selected element is not visually different to the other elements as iOS darkens the selected item and hence black remains unchanged. Does anyone know how to make the selected element a lighter color/shade without using undocumented methods? I have successfully achieved this with a graduated layer but there must be an easier way!


Here is an description how you can set an tintcolor for each segment.

http://www.framewreck.net/2010/07/custom-tintcolor-for-each-segment-of.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜