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