开发者

iPhone NavBar with tintColor looks Flat

开发者 https://www.devze.com 2023-01-09 15:57 出处:网络
I am able to use tintColor to change the color of my NavBar, but this causes the NavBar to appear \"flat\". The standard NavBars have a shading to them - is there any way to accomplish this shad开发者

I am able to use tintColor to change the color of my NavBar, but this causes the NavBar to appear "flat". The standard NavBars have a shading to them - is there any way to accomplish this shad开发者_运维知识库ing without using a custom image in place of the NavBar?


It really depends on the tint color you're using—bright colors often drown out the subtle gradients that the standard navigation bar applies. Interface Builder is the best place to try that out; you ought to be able to find a color close to the one you're after whose shading on the navigation bar will still look good.

0

精彩评论

暂无评论...
验证码 换一张
取 消