Xcode 6.x/iOS 8 Hides Status Bar in Landscape Orientation

后端 未结 3 1993
臣服心动
臣服心动 2021-02-13 18:36

Application build with Xcode 6.x automatically hides the status bar in Landscape orientation (iPhone). The same application when compiled with Xcode 5.x doesn\'t do that.

<
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-13 19:13

    Set "View controller-based status bar appearance" to YES in Info.plist

    Then place the following code in the desired view controller:

    - (BOOL)prefersStatusBarHidden {
        return NO;
    }
    

提交回复
热议问题