How can remove the bottom shadow of UINavigationBar? -


i using custom navigationbar within projects, it's giving bottom drop shadow of uinavigation bar, how can remove it, please provide answer if work on it.

tia :)

the easiest way remove shadow underneath uinavigationbar set custom background image , set shadow image blank uiimage.

customviewcontroller.m

- (void)viewdidload {     [self.navigationcontroller.navigationbar setbackgroundimage:[uiimage imagenamed:@"background"] forbarmetrics:uibarmetricsdefault];     [self.navigationcontroller.navigationbar setshadowimage:[[uiimage alloc] init]]; } 

in above example, "background" png image in project.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -