Sets the style of the status bar, optionally animating the transition to the new style.
Mac Catalyst 13.0–13.0Deprecated
A constant that specifies a style for the status bar. See the descriptions of the constants in UIStatusBarStyle for details.
YES if the transition to the new style should be animated; otherwise NO .
The animation slides the status bar out toward the top of the interface.
In iOS 7 and later, status bar behavior is determined by view controllers, and so calling this method has no effect by default. When view controller-based status bar appearance is disabled, this method behaves normally. To opt out of the view controller-based status bar appearance behavior, you must add the UIViewControllerBasedStatusBarAppearance key with a value of NO to your app’s Info.plist file, but doing so is not recommended.
Hides or shows the status bar, optionally animating the transition.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.