I used to use setStatusBarStyle in my project and it works fine, but it is deprecated so I use preferredStatusBarStyle, that didn't work.
knowing that I've:
- Call the method setNeedsStatusBarAppearanceUpdate.
- Set "View controller-based status bar appearance" to NO in info.plist
Override the function
- (UIStatusBarStyle)preferredStatusBarStyle { return UIStatusBarStyleLightContent; }
this function is not called
Note: I'm using navigation controller.