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 naturally Uirectedgeall, and the surrounding edges are stretched, meaning that if there is navigationbar in the view and there is Tabbar, the view will still extend over the four-week area.
Self.edgesforextendedlayout = Uirectedgenone;
To solve the problem of uinavigationbar transparency. After setting the Uirectedgenone, the UITableView and uiscrollview you embed in the Uiviewcontroller will not pass through Uinavigationbar, and the UIView control will revert to the iOS6 era.
However, this change to the status bar above the iOS7 is invalid, and the correct one should be partially invalid. In the presence of the navigation part or the Tabbar section, the above code can make the status bar transparent (pending verification, after all, the Uiviewcontroller available space is controlled), but without these two parts, the status Bar will still be credited to the UIView range.