UINavigationBar set tintcolor tested in iOS7 not working?

后端 未结 6 1279
攒了一身酷
攒了一身酷 2021-02-07 01:26

I have an app which have a UINavigationBar and I have set the tint color to black like this:

self.navigationController.navigationBar.tintColor = [UI         


        
6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 02:04

    Had the same issue, but solved it via storyboard file.

    Try the following.

    1. Open your .storyboard file.
    2. Select the scene with navigation controller
    3. Select Navigation Bar item into Navigation Controller scene enter image description here

    4. Open the Utilities tab on the right side of XCode

    5. Open Attributes Inspector
    6. In "Navigation Bar" group there will be Bar Tint dropdown list. You can choose any color for a tint. enter image description here

提交回复
热议问题