Sets the app's status bar to the specified orientation, optionally animating the transition.
- iOS 2.0–9.0Deprecated
trueif the transition to the new orientation should be animated;
falseif 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
true . 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.