UIViewController.ModalPresentationCapturesStatusBarAppearance UIViewController.ModalPresentationCapturesStatusBarAppearance Property

Definition

Whether the UIViewController, when presented modally but non-fullscreen, takes over control of the status bar.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("modalPresentationCapturesStatusBarAppearance")]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[set: Foundation.Export("setModalPresentationCapturesStatusBarAppearance:")]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ModalPresentationCapturesStatusBarAppearance { get; set; }
member this.ModalPresentationCapturesStatusBarAppearance : bool with get, set

Property Value

Boolean indicating whether the modal view controller takes over control of the status bar.

Applies to