swiftswift3uistatusbarlaunch-screen

Hide status bar in Launch Screen


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 ).


Solution

  • To Hide Status Bar initially on launch screen, set Hide status bar check mark on ✓ enter image description here

    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
    }