Editar

Compartilhar via


UIViewController.WantsFullScreenLayout Property

Definition

true if the view should overlap the status bar.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'EdgesForExtendedLayout', 'ExtendedLayoutIncludesOpaqueBars' and 'AutomaticallyAdjustsScrollViewInsets' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool WantsFullScreenLayout { [Foundation.Export("wantsFullScreenLayout")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'EdgesForExtendedLayout', 'ExtendedLayoutIncludesOpaqueBars' and 'AutomaticallyAdjustsScrollViewInsets' instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setWantsFullScreenLayout:")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'EdgesForExtendedLayout', 'ExtendedLayoutIncludesOpaqueBars' and 'AutomaticallyAdjustsScrollViewInsets' instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.WantsFullScreenLayout : bool with get, set

Property Value

The default value is false.

Attributes

Remarks

When this property is at it's default value of false, the UIViewController's View's Frame is sized so that it does not include the area under the device's status bar (the area at the stop of the screen that shows, e.g., signal and carrier, battery charge, etc.). If set to true and StatusBarStyle is set to BlackTranslucent, the View will be visible behind the status bar.

public override void ViewDidLoad ()
{
    base.ViewDidLoad ();

    WantsFullScreenLayout = true;
    UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.BlackTranslucent;
}

Applies to