The old method is used to set the status bar style of the app. In the info.plist, the View controller-based status bar appearance is set to NO, and the default is YES. This method is generally used for iOS6, and also for iOS7 and 8. Compatible, but a warning was reported when iOS9 arrived.
In the Xcode project file settings, set View controller-based status bar appearance to YES, and then use the new method to implement the status bar style.
Write the following method in your custom navigation controller:
The old method is used to set the status bar style of the app. In the info.plist, the View controller-based status bar appearance is set to NO, and the default is YES. This method is generally used for iOS6, and also for iOS7 and 8. Compatible, but a warning was reported when iOS9 arrived.
Delete the original setting code
In the Xcode project file settings, set View controller-based status bar appearance to YES, and then use the new method to implement the status bar style.
Write the following method in your custom navigation controller:
Clean or delete the application and re-run
Warning elimination