Navigation Bar color doesn't change back? iOS7
Posted
by
TKP
on Stack Overflow
See other posts from Stack Overflow
or by TKP
Published on 2014-05-29T03:21:29Z
Indexed on
2014/05/29
3:24 UTC
Read the original article
Hit count: 174
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,
© Stack Overflow or respective owner