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

Property Value

The default value is false.

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