UINavigationBar background color not the exact UIColor I set it to

前端 未结 12 1609
天命终不由人
天命终不由人 2020-12-14 00:16

Please look at the screenshot below.

I set all the tint colors from the same UIColor object for the UINavigationBar, search bar and toolbar at the bottom. But for so

12条回答
  •  孤街浪徒
    2020-12-14 00:48

    You will have to disable property translucent for navigation bar

    you can do it programatically with following line

    self.navigationController?.navigationBar.isTranslucent = false 
    

    OR

    Just un-tick "Translucent" check box from storyboard, you will find it in UINavigationBar properties on UINavigationController

提交回复
热议问题