@property (nonatomic,assign) UIRectEdge edgesForExtendedLayout NS_AVAILABLE_IOS(7_0); // Defaults to UIRectEdgeAll
@property (nonatomic,assign) BOOL extendedLayoutIncludesOpaqueBars NS_AVAILABLE_IOS(7_0); // Defaults to NO, but bars are translucent by default on 7_0.
@property (nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets NS_AVAILABLE_IOS(7_0); // Defaults to YES
设置frame即可!如果是在table视图中的话,需要设置一下当前UIViewController的automaticallyAdjustsScrollViewInsets为NO
设置状态栏显示就需要看项目设置了,是否由UIViewController控制,如果不由控制,就通过UIApplication控制,包括设置颜色和显示
对于全屏布局,你需要了解一下 UIViewController 的下面 3 个属性:
可以看一下这篇文章:http://www.samirchen.com/ios-view-contro...