Change color of UINavigationController back button

后端 未结 2 1274
北荒
北荒 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:55

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

    if let navController = self.navigationController
    {
        navController.navigationBar.tintColor = UIColor.whiteColor()
    }
    

提交回复
热议问题