Class

UIStatusBarManager

An object describing the configuration of the status bar.

Declaration

@interface UIStatusBarManager : NSObject

Overview

Use a UIStatusBarManager object to get the current configuration of the status bar for its associated scene. You do not create UIStatusBarManager objects directly. Instead, you retrieve an existing object from the statusBarManager property of a UIWindowScene object.

You do not use this object to modify the configuration of the status bar. Instead, you set the status bar configuration individually for each of your UIViewController objects. For example, to modify the default visibility of the status bar, override the prefersStatusBarHidden property of your view controller.

Topics

Getting the Status Bar Configuration

statusBarHidden

A Boolean value indicating whether the status bar is currently hidden.

statusBarStyle

The current appearance of the status bar.

Getting the Frame Rectangle

statusBarFrame

The frame rectangle of the status bar.

Relationships

Inherits From

See Also

Device Environment

UIDevice

A representation of the current device.