Last active
December 28, 2015 18:42
-
-
Save kennylugo/6a35e890df4361990609 to your computer and use it in GitHub Desktop.
Make status bar white in iOS 9 with Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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