ios - UINavigationBar translucent removes the image which added on navigation bar -


earlier want scroll uiview below navigation bar, so, set

 self.navigationcontroller.navigationbar.translucent = no; 

after setting translucent no

the background navigationimage missing. white in colour.

no idea went wrong here. please find below image navigation bar.

[self.navigationcontroller.navigationbar setbackgroundimage:[uiimage imagenamed:@"bg.png"]                          forbarmetrics:uibarmetricscompact]; self.navigationcontroller.navigationbar.translucent = no; 

your feedback appreciated!

enter image description here

use uibarmetricsdefault instead of uibarmetricscompact

[self.navigationcontroller.navigationbar setbackgroundimage:[uiimage imagenamed:@"bg.png"] forbarmetrics: uibarmetricsdefault]; self.navigationcontroller.navigationbar.translucent = no; 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -