StatusBarStyle

iOS 9 has

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

as depreciated and has

"Use -[UIViewController preferredStatusBarStyle]"

as the replacement code, but I can't find any such code in documentation.


Anyone see what I'm missing?

Replies

preferredStatusBarStyle was introduced in iOS 7. It allows you to set the status bar style at the view controller level. In a view controller subclass you override the preferredStatusBarStyle method and return a style.