iPhone Set Tint Color of Back Bar Button Item

前端 未结 10 785
清歌不尽
清歌不尽 2020-12-08 22:15

I am trying to set the tint color of the back button within a navigation controller, but nothing is working. I have tried

[self.navigationController.backBa         


        
10条回答
  •  眼角桃花
    2020-12-08 22:51

    Swift way:

    It changes all items in the nav.

    In AppDelegate do something like this:

    let navControl = UINavigationBar.appearance()
        navControl.tintColor = UIColor.grayColor()
    

提交回复
热议问题