I\'ve try to modify status bar color text but no one answer from this thread doesn\'t work. Any especially for XCode 6?
I\'ve tried insert:
override func
Be sure to set the View controller-based status bar appearance
in your info.plist file to Yes
.
Furthermore, if you are in a UINavigationController, you cannot simply set the style in ViewControllers in it. Subclass the UINavigationController and add this to it:
override func preferredStatusBarStyle() -> UIStatusBarStyle {
if let vc = self.viewControllers?.last as? UIViewController {
return vc.preferredStatusBarStyle()
}
return super.preferredStatusBarStyle()
}
Now you can set the bar style in the UIViewController subclass and the UINavigationController will listen to it :).