Düzenle

Aracılığıyla paylaş


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

Property Value

The default value is All.

Attributes

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