Instance Property

preferredStatusBarStyle

The preferred status bar style for the view controller.

Declaration

@property(nonatomic, readonly) UIStatusBarStyle preferredStatusBarStyle;

Return Value

A UIStatusBarStyle key indicating your preferred status bar style for the view controller.

Discussion

You can override the preferred status bar style for a view controller by implementing the childViewControllerForStatusBarStyle method.

If the return value from this method changes, call the setNeedsStatusBarAppearanceUpdate method.

See Also

Managing the Status Bar

childViewControllerForStatusBarHidden

Called when the system needs the view controller to use for determining status bar hidden/unhidden state.

childViewControllerForStatusBarStyle

Called when the system needs the view controller to use for determining status bar style.

prefersStatusBarHidden

Specifies whether the view controller prefers the status bar to be hidden or shown.

modalPresentationCapturesStatusBarAppearance

Specifies whether a view controller, presented non-fullscreen, takes over control of status bar appearance from the presenting view controller.

preferredStatusBarUpdateAnimation

Specifies the animation style to use for hiding and showing the status bar for the view controller.

- setNeedsStatusBarAppearanceUpdate

Indicates to the system that the view controller status bar attributes have changed.