Changing UINavigationBar color for one controller view
I have a navigation controller with a custom navigation bar. I am using the IOS 5 UINavigationBar "appearance" attribute to set the background image.
I do this in the appDidFinishLaunchingWithOptions delegate method to change the background image on all nav bars. The problem is I need to change the color of the navigation bar to UIBarStyleBlackTranslucent for one view controller.
How can I do this without going back and changing each view controller?
+3
Keller
source
to share
1 answer
Subclass UINavigationController and the popViewControllerAnimated method of your subclass reset the background image / color, then call super popViewControllerAnimated.
This assumes you are using the UINavigationController which I think you are.
0
Taylor dondich
source
to share