Layout iOS 7全屏布局

Layout iOS 7全屏布局,layout,uiviewcontroller,fullscreen,ios7,Layout,Uiviewcontroller,Fullscreen,Ios7,众所周知,在iOS 7中,默认情况下视图控制器具有全屏布局,并且不推荐使用WantFullScreenLayout,我不想要全屏布局,因为它在使用XCode 5编译旧应用程序时会导致问题,所以我在下面尝试了这一点 - (void)viewDidLoad { [super viewDidLoad]; self.wantsFullScreenLayout = NO; self.edgesForExtendedLayout = UIRectEdgeNone; } 这似乎不

众所周知,在iOS 7中,默认情况下视图控制器具有全屏布局,并且不推荐使用WantFullScreenLayout,我不想要全屏布局,因为它在使用XCode 5编译旧应用程序时会导致问题,所以我在下面尝试了这一点

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.wantsFullScreenLayout = NO;
    self.edgesForExtendedLayout = UIRectEdgeNone;

}
这似乎不起作用。我得到了全屏布局。我使用的是XCode开发者预览版Beta 6。有什么解决办法吗

问候,


是否可以尝试将edgesForExtendedLayout设置为UIExtendedEdgeOne

正如这里所解释的
如果这不起作用,您可以试试 self.navigationController.navigationBar.translucent=否; 因为在iOS7中默认情况下导航是半透明的