Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: What does tint color actually do?

Tags:

ios

tintcolor

Suppose a segmented control's tint color is set to RGB(69, 175, 225) but the actually color from color picker range from (top most) RGB(146, 181, 211) to (bottom most) RGB(82, 118, 147).

So how can I expect the actually displayed color of the segmented control. For example, if I want the color of the bottom most point is RGB(69, 175, 225), what is the RGB value should I set?

like image 722
Protocole Avatar asked Nov 29 '11 08:11

Protocole


People also ask

What is tint color in IOS?

Tint color is a "default" or "fallback" color for the application or UIView. As Apple states, "it is the first non-default color in the heirarchy. All subclasses of UIView derive their behavior for tintColor from the base class.".

What does it mean to tint an image?

In color theory, a tint is a mixture of a color with white, which increases lightness, while a shade is a mixture with black, which increases darkness. Both processes affect the resulting color mixture's relative saturation. A tone is produced either by mixing a color with gray, or by both tinting and shading.


1 Answers

The tint is a color on which some fancy visual effects (glossy reflections and so on) is applied. iOS applies them to app icons, tab bars, navigation bars and many other things. I think it would be wrong for you to make any assumptions as to what the local color for a given pixel is for a given tint, given these visual effects vary from UIElement to UIElement and probably from one OS version to another.

like image 50
jbat100 Avatar answered Oct 20 '22 18:10

jbat100