Skip to content

Instantly share code, notes, and snippets.

@stephen-francis
Created January 24, 2017 21:50
Show Gist options
  • Select an option

  • Save stephen-francis/12379af87f377bd0e976bad96f0ade61 to your computer and use it in GitHub Desktop.

Select an option

Save stephen-francis/12379af87f377bd0e976bad96f0ade61 to your computer and use it in GitHub Desktop.
// pre-iOS 9.0, UIViewControllers could update status bar hidden state at the application level, like so:
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
// set the status bar hidden at the application level
// status bar will be hidden on all view controllers
UIApplication.shared.isStatusBarHidden = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment