07-18-2023, 11:30 PM
Alternatively, you can opt out of the view-controller based status bar appearance:
1. Set `View controller-based status bar appearance` to `NO` in your `Info.plist`.
2. Call `[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];`
Note: This method has been deprecated in iOS9. Use `preferredStatusBarStyle` on the UIViewController instead. (see [Apple Developer Library][1])
[1]:
1. Set `View controller-based status bar appearance` to `NO` in your `Info.plist`.
2. Call `[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];`
Note: This method has been deprecated in iOS9. Use `preferredStatusBarStyle` on the UIViewController instead. (see [Apple Developer Library][1])
[1]:
[To see links please register here]