how do you change the colour of the Navigation Bars, Tab Bars?
Everytime I change it, I dont get the colour I want, It either gradient red, or gradient white/silver.
But unable to do it, default gradient blue and grey both look good but try changing it any other colour and it looks terrible.
Any tips? how to do gradient?
For Navigation Bar you could use:
This would tint the color of the Navigation Bar and all it’s Buttons to a specific color, in this case red. This property can also be set in Interface Builder.
And if you wanted to customize it further, you can set the background of the
UINavigationBarto an image by sub-classing it. Like so…Header File.
Implementaion File.
Then in Interface Builder set the class of you
UINavigationBarto (in this case)CustomNavigationBarunder the Identity Tab.If you change the code slightly so it subclasses
UITabBarinstead, it might work withUITabBaralthough I haven’t tried it.