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