Sets the app's status bar to the specified orientation, optionally animating the transition.
- iOS 2.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
YESif the transition to the new orientation should be animated;
NOif it should be immediate, without animation.
Calling this method changes the value of the
status property and rotates the status bar, animating the transition if animated is
YES . If your app has rotatable window content, however, you should not arbitrarily set status-bar orientation using this method. The status-bar orientation set by this method does not change if the device changes orientation.