The Edgesforextendedlayout in iOS7

Source: Internet
Author: User

Edgesforextendedlayout is a property of type Uiextendededge that specifies the direction to which the edge extends.

Because IOS7 encourages full-screen layout, its default value is uirectedgeall--around the edges, which means that even if there is navigationbar in the view and there is Tabbar, the view will still extend over the four-week area.

if ([Self respondstoselector: @selector (edgesforextendedlayout)])         = uirectedgenone;

As shown in the code above, after setting the Uirectedgenone, the UITableView and Uiscrollview embedded in the Uiviewcontroller will not pass through the Uinavigationbar, At the same time UIView also restored to the iOS6 era.

However, this change to status bar on the iOS7 is not valid, and rightly speaking, it should be partially invalid. In the presence of the navigation part or the Tabbar section, the above code can make the status bar no longer transparent, but in the absence of these two parts, the status bar is still accounting for the UIView range.

The Edgesforextendedlayout in iOS7

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.