iPhone Set Tint Color of Back Bar Button Item

前端 未结 10 806
清歌不尽
清歌不尽 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:38

    What worked for me was this :

    self.navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor textPrimaryColor] forKey:NSForegroundColorAttributeName];
    

提交回复
热议问题