iOS Guides | Samples

MonoTouch.UIKit.UIStatusBarStyle Enumeration

The visual style of the status bar.

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIStatusBarStyle

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 UIStatusBarStyle.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 UIViewController.PreferredStatusBarStyle so that it returns UIStatusBarStyle.LightContent.

Members

Member NameDescription
BlackOpaqueApplication developers should not use this deprecated style.
BlackTranslucentApplication developers should not use this deprecated style.
DefaultThe default, dark, value for content in the status bar. Preferable for use with lighter-colored content views.
LightContentContent in the status bar is drawn with light values. Preferable for use wth darker-colored content views.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIStatusBarStyle are listed below.

See Also: Enum

Public Fields

BlackOpaqueUIStatusBarStyle. Application developers should not use this deprecated style.
BlackTranslucentUIStatusBarStyle. Application developers should not use this deprecated style.
DefaultUIStatusBarStyle. The default, dark, value for content in the status bar. Preferable for use with lighter-colored content views.
LightContentUIStatusBarStyle. Content in the status bar is drawn with light values. Preferable for use wth darker-colored content views.