?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