Change color of UINavigationController back button

后端 未结 2 1248
北荒
北荒 2021-01-21 13:08

I\'m having problems trying to figure out how to change the color of the buttons on the navigation controller.

Previously I had used the following:

[[UI         


        
相关标签:
2条回答
  • 2021-01-21 13:37

    Yeah, I'll just post this as an answer. Your alpha is set to 0. So you're basically saying the same thing as [UIColor clearColor]. Not sure how that ever worked to give you a tint color on your bar button items.

    0 讨论(0)
  • 2021-01-21 13:55

    In swift, it can be accomplished by the following command:

    if let navController = self.navigationController
    {
        navController.navigationBar.tintColor = UIColor.whiteColor()
    }
    
    0 讨论(0)
提交回复
热议问题