iOS 8 - Rotation makes statusBar disappear even in portrait mode after toggling controls

后端 未结 4 1016
渐次进展
渐次进展 2021-02-04 05:34

I\'m having a lot of troubles with the new auto hiding of the status bar in iOS 8.

In my app, I\'ve got a view in which when the user taps once, the navigation bar and th

4条回答
  •  长发绾君心
    2021-02-04 05:49

    This is the swift (3.0) version of that prefersStatusBarHidden

    override var prefersStatusBarHidden: Bool{
        return false
    }
    

    You just need to add it to your ViewController

提交回复
热议问题