In cocoa touch the navigation bar, have like a built in functionality to add gradiency to the color i'm applying to it, for example if i'm setting a red color, it will give a gradient from red, to a whiter-red color.
What are the ways to change that?
- using the properties of the navigation bar. (stopgradient,setbackgroundImage... or anything to override it)
- To at least imitate it. Since we know it's definitely related to lo开发者_运维问答okandfeel defined by Apple, what is the actual way of the calculation, so maybe i can simulate it with the designer, and give him like a program for him to preview the colors before sending it to me. I don't mind a link to such a page that describes all that.
- the forced way, override the paint of the navigationbar?
thanks a lot.
I'm not sure from your question whether you already know about the tintColor
property on UINavigationBar, but that's the officially supported way to change the color. See the documentation here.
If you want your designer to be able to see what it looks like he can use Interface Builder and drag a UINavigationBar onto a view and change its tint.
精彩评论