[Ios]edgesforextendedlayout, Automaticallyadjustsscrollviewinsets

Source: Internet
Author: User

?after IOS7 viewcontroller start using full-screen layout, and the default behavior usually involves the layout

You can't leave this property? Edgesforextendedlayout, it is a property of type Uiextendededge,

Specifies the direction to which the edge will extend , its default value is naturally Uirectedgeall, and the surrounding edges are extended, meaning

If there are tabbar in the view, even if there is Navigationbar, the view will still extend to the four-week area.

Because generally in order not to let TableView not extend to Navigationbar below, the property is set to? Uirectedgenone

Uirectedgeall--Default


Uirectedgenone?


You will find that the navigation bar is grayed out and the following is OK

?

self navigationcontroller . navigationbar translucent ?=? no


What about Automaticallyadjustsscrollviewinsets?

When the automaticallyadjustsscrollviewinsets is NO, TableView starts at the top of the screen, which is

Navigation bar & Status bar overlay


?

When the automaticallyadjustsscrollviewinsets is YES, it is also the default behavior, the performance is more normal, and

Edgesforextendedlayout =? What's the difference between uirectedgenone? Not paying attention may be hard to detect

The designer may see through at a glance ...? When Automaticallyadjustsscrollviewinsets is Yes,

TableView swipe up and down, you can go through the navigation bar & status bar, under 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, Automaticallyadjustsscrollviewinsets

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.