Skip to content

Instantly share code, notes, and snippets.

@kennylugo
Last active December 28, 2015 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennylugo/6a35e890df4361990609 to your computer and use it in GitHub Desktop.
Save kennylugo/6a35e890df4361990609 to your computer and use it in GitHub Desktop.
Make status bar white in iOS 9 with Swift
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
//Changing Status Bar
override func preferredStatusBarStyle() -> UIStatusBarStyle {
//LightContent
return UIStatusBarStyle.LightContent - White Text
//Default
//return UIStatusBarStyle.Default - Black Text
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment