UIViewController.EdgesForExtendedLayout UIViewController.EdgesForExtendedLayout Property

Definition

Specifies how the ParentViewController should extend the layout of this UIViewController.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("edgesForExtendedLayout", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
[set: Foundation.Export("setEdgesForExtendedLayout:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
public virtual UIKit.UIRectEdge EdgesForExtendedLayout { get; set; }
member this.EdgesForExtendedLayout : UIKit.UIRectEdge with get, set

Property Value

The default value is All.

Remarks

Prior to iOS 7, the View did not visually underlap parent elements such as the status bar, navigation bar, or toolbar. In iOS 7, it typically should.

The EdgesForExtendedLayout specifies to the ParentViewController how the edges of this UIViewController should be extended for underlap. The default value of All specifies that all edges should be extended to underlap, while None specifies an extent similar to that in iOS 6 or earlier.

The following image illustrates the difference: when EdgesForExtendedLayout is set to All, the drawing rectangle of the underlying UIView underlaps, but if EdgesForExtendedLayout is set to None, the drawing rectangle is restricted to the interior.

Applies to