IOS edgesforextendedlayout, Extendedlayoutincludesopaquebars, Automaticallyadjustsscrollviewinsets properties

Source: Internet
Author: User

Edgesforextendedlayout:

After IOS7 Viewcontroller began to use full-screen layout, and the default behavior is usually related to layout, it is inseparable from this property edgesforextendedlayout, which is a type of uiextendededge properties, Specifies the direction in which the edge is to be stretched, its default value is naturally Uirectedgeall, and the surrounding edges extend, that is, if there are tabbar in the view, the view will still extend to the area of four weeks, even if there are navigationbar. Because generally, in order not to let TableView not extend to Navigationbar, the property is set to Uirectedgenone

Uirectedgeall--Default

Uirectedgenone

At this point you will find the navigation bar gray, processing as follows OK, self. Navigationcontroller. Navigationbar. Translucent = NO;

Automaticallyadjustsscrollviewinsets:

When Automaticallyadjustsscrollviewinsets is NO, TableView starts at the top of the screen, which is covered by the navigation bar & status bar


When Automaticallyadjustsscrollviewinsets is YES, it is also the default behavior, the performance is more normal, and edgesforextendedlayout = Uirectedgenone What is the difference? Not note may be difficult to detect, when the automaticallyadjustsscrollviewinsets is yes, tableView up and down, you can go through the navigation bar & status bar, underneath them there is a faint light red

Extendedlayoutincludesopaquebars

First look at the official explanation, default NO, but bar's default property is transparent ... Which means it's only useful if it's opaque.

However, the test results are very weak, the basic difference is not big ... However, it is still useful to solve some bugs, such as Searchbar's

For details see: http://www.cnblogs.com/skyming/p/4059128.html, other Uitableview,uiscrollview locations

The problem is mostly related to these 3 attributes:

IOS edgesforextendedlayout, Extendedlayoutincludesopaquebars, Automaticallyadjustsscrollviewinsets properties detailed

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.