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
Post a Comment