iOS7,当我将NavigationBarHidden设置为YES时,状态栏在视图上重叠

iOS7,当我将NavigationBarHidden设置为YES时,状态栏在视图上重叠,ios7,hidden,statusbar,navigationbar,Ios7,Hidden,Statusbar,Navigationbar,在ios7中,状态栏被更改,它与我的视图重叠。 我用这种方法来防止这种情况 if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { self.automaticallyAdjustsScrollViewInsets = NO; self.extendedLayoutIncludesOpaqueBars = YES; self.edgesForExt

在ios7中,状态栏被更改,它与我的视图重叠。 我用这种方法来防止这种情况

    if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
    {

        self.automaticallyAdjustsScrollViewInsets = NO;
        self.extendedLayoutIncludesOpaqueBars = YES;
        self.edgesForExtendedLayout = UIRectEdgeNone;
    }

当我有一个导航栏时,它可以工作,但我将导航栏设置为隐藏,问题再次出现。

添加到.plist文件行:

查看基于控制器的状态栏外观=否