iPhone iOS how to redraw UINavigationBar on demand?

后端 未结 1 1280
生来不讨喜
生来不讨喜 2021-02-11 09:25

I have code that changes the color of navigation bar using appearance attribute. I would like the change to the navbar color to be visible immediately. However, I cannot find a

相关标签:
1条回答
  • 2021-02-11 10:00

    Can't you just set the tintColor of the NavigationBar? That should work:

    self.navigationController.navigationBar.tintColor = [UIColor redColor];
    
    0 讨论(0)
提交回复
热议问题