Sets the style of the status bar, optionally animating the transition to the new style.
- iOS 2.0–9.0Deprecated
A constant that specifies a style for the status bar. See the descriptions of the constants in
YESif the transition to the new style should be animated; otherwise
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
UIView key with a value of
NO to your app’s
Info file, but doing so is not recommended.