Thursday, March 22, 2012
UINavigationBar tintColor, why not backgroundColor or color?
It doesn't have any methods like "setBackgroundColor" or "setColor". If you think about it we really don't change the background colour of the UINavigationBar. The reason for me to think this way was because when we set a colour using setTintColor it applies the colour not only to the UINavigationBar but also to its elements (keeping the text/images unharmed of course). So I think "setTintColor" looks as if it applies a tint over the UINavigationBar. May be this is why they chose "setTintColor" over "setBackgroundColor" and "setColor".
Please feel free to comment.