3
votes

I have a navigation controller with a custom background navigation bar. I am using iOS 5's UINavigationBar "appearance" attribute to set the background image.

I am doing so in the applicationDidFinishLaunchingWithOptions app delegate method in order to change the background image across all nav bars. Trouble is, I need to change the navigation bar color to UIBarStyleBlackTranslucent for one single view controller.

How can I do this without having to go back and change every single view controller?

1
Have you tried to make its copy and to assign it when you need?Gargo
I'm not sure I know what you mean here, can you expand on this?Keller

1 Answers

0
votes

Subclass the UINavigationController and have the popViewControllerAnimated method of your subclass reset the background image/color then call super's popViewControllerAnimated.

This assumes you are using a UINavigationController, which I think you are.