IOS top Gaussian Blur nav bar + page content across the bottom navigation bar effect

Source: Internet
Author: User


(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.