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