ios - set navigation bar back to default -


in app's uiapplicationdelegate customizing background of navigation bar code:

[[uinavigationbar appearance] setbackgroundimage:[uiimage imagenamed:myimage] forbarmetrics:uibarmetricsdefault]; 

everything working fine, when launching example image picker, set navigation bar default, , when user has picked picture, restore custom background. possible?

i have tried setting backgroundcolor property nil nothing.

instead of changing appearance uinavigationbar (which affect every navigation bar), make subclass of uinavigationbar, use in appearance code.

then in navigation controller, set navigation bar class of 1 subclassed.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -