iPhone iOS how to redraw UINavigationBar on demand?

后端 未结 1 908
北恋
北恋 2021-02-11 09:41

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 09:56

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

    self.navigationController.navigationBar.tintColor = [UIColor redColor];
    

    0 讨论(0)
提交回复
热议问题