i need help on my UISegment appearances, i set this in my app delegate everything works fine.
till i add in this code to change my selected segment color, it caused an i
nice way to tint the single segments, i was looking for something like that. But now i wonder if it's a "legal" way...
with:
[[infoSegment.subviews objectAtIndex:i] setTintColor:[UIColor colorWithRed:196.0/255.0 green:223.0/255.0 blue:155.0/255.0 alpha:1]];
it seems you are using the "private" property "tintColor" of the single elements in the UISegmentedControl, not officially declared by apple (it's declared just the property "tintColor" of the whole UISegmentedControl, then apple use it to colorize in 2 different way the elements, the selected one and the other).
so, your method could really work, and i'm considering to use it... but apple could reject your app if it's really considered a private setter method... have you ever used it in an app approved for iStore?
It looks like the code above is only setting appearance for UIControlStateNormal
, you also need to set the appearance for UIControlStateSelected
.