UIStatusBarStyle UIStatusBarStyle Enum

Definition

The visual style of the status bar.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIStatusBarStyle
type UIStatusBarStyle = 
Inheritance
UIStatusBarStyleUIStatusBarStyle
Attributes

Fields

BlackOpaque BlackOpaque 2

Developers should not use this deprecated field. Developers should use 'LightContent' instead.

BlackTranslucent BlackTranslucent 1

Application developers should not use this deprecated style.

Default Default 0

The default, dark, value for content in the status bar. Preferable for use with lighter-colored content views.

LightContent LightContent 1

Content in the status bar is drawn with light values. Preferable for use wth darker-colored content views.

Remarks

Starting in iOS 7, the status bar does not have background content, so application developers must ensure that the style of the status bar works with the content of the UIView that will appear behind it. The Default style of the status bar presents dark content (i.e., its text and content are dark). If the underlying view has dark content, the status bar will be more legible if the application developer overrides PreferredStatusBarStyle() so that it returns LightContent.

Applies to