UINavigationBar set tintcolor tested in iOS7 not working?

后端 未结 6 1375
攒了一身酷
攒了一身酷 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条回答
  •  猫巷女王i
    2021-02-07 01:59

    You need to set the barTintColor property.

    You can specify a custom tint color for the navigation bar background using the Tint (barTintColor) field. The default background tint color is white.

    From iOS7 docs: https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/UIKitUICatalog/UINavigationBar.html#//apple_ref/doc/uid/TP40012857-UINavigationBar-SW1

提交回复
热议问题