开发者

Changing the color of the selected item in a UISegmentControl

开发者 https://www.devze.com 2023-03-16 07:19 出处:网络
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.

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

精彩评论

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