Navigation Bar color doesn't change back? iOS7
- by TKP
I have several tableviews with navigation controller.
The navigation bar is white for all the views except the last one, which is red.
I have
[[[self navigationController] navigationBar] setTintColor:[UIColor redColor];
in the viewDidLoad of the last tableview and
[[[self navigationController] navigationBar] setTintColor:[UIColor whiteColor];
in the viewDidLoad of other table views.
It works fine until I get to the last view and the color of the navigation bar changes to red. When I go back to the previous views, all the previous views' navigation bar has changed to red. Where should I put those codes so the color will remain unchanged?
Thanks,