Hide status bar in Launch Screen

百般思念 提交于 2020-06-11 08:16:29

问题


By default the launch screen provides a status bar. Is it possible to hide the status bar in launch screen like a Twitter app ( iOS ).


回答1:


To Hide Status Bar initially on launch screen, set Hide status bar check mark on ✓

OR

In Your Info.plist add: Status bar is initially hidden YES.

The above both option having same impact.

Additionally

To Hide Status Bar on specific ViewController override prefersStatusBarHidden with true

override var prefersStatusBarHidden: Bool{
    return true
}


来源:https://stackoverflow.com/questions/48718697/hide-status-bar-in-launch-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!