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
YES if the transition to the new orientation should be animated;
NO if it should be immediate, without animation.
Calling this method changes the value of the
statusBarOrientation 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.
The frame rectangle defining the area of the status bar.
The minimum amount of time (measured in seconds) an app may run a critical background task in the background.
Attempts to open the resource at the specified URL.
Sets the icon of a Newsstand app to an image depicting the current issue of a publication.
A Boolean value that determines whether the status bar is hidden.
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.Learn more about using Apple's beta software