(1) If you are using the system navigation bar, set its Translucent property:
[Self.navigationController.navigationBar setbackgroundimage:[uiimage New]
Forbarmetrics:uibarmetricsdefault];
Self.navigationController.navigationBar.shadowImage = [UIImage new];
Self.navigationController.navigationBar.translucent = YES;
Self.navigationController.view.backgroundColor = [Uicolor Whitecolor];
(2) If the custom UIView as the navigation bar at the top of the page, use the contentinset of Uitoolbar and TableView to achieve:
Blur effect:
uitoolbar *navibar = [[uitoolbar alloc] initwithframe:cgrectmake(0 , self. statusbaroffset, self. View. frame. size. width, self. navigationbarheight)];
Navibar. Bartintcolor = Navi_color_gray;
Content across navigation bar effects:
Self.TableView.Contentinset = Uiedgeinsetsmake( Self.Navigationbarheight, 0, 0, 0); Self.TableView.scrollindicatorinsets = Uiedgeinsetsmake( Self.Navigationbarheight, 0, 0, 0);
This article is from the "original Stone born Jade" blog, please be sure to keep this source http://ymbian.blog.51cto.com/725073/1682238
IOS top Gaussian Blur nav bar + page content across the bottom navigation bar effect