Color difference between UINavigationBar Tint Color and rest of app in IOS

后端 未结 1 408
臣服心动
臣服心动 2021-01-05 01:52

This is my design in Sketch:

Sketch says that the blue color is 70,164,239.

So I have the following code for my tab:

UINavigationBar         


        
相关标签:
1条回答
  • 2021-01-05 02:31

    The tintColor is a tint color. It combines with the translucency (is that a word?) of the bar, along with what's behind the bar, to give some other resulting color.

    If you want full control over the actual color of a navigation bar, set its translucent to false and then give it a background image consisting of a rectangle of the desired color - and no tint color.

    0 讨论(0)
提交回复
热议问题