Edytuj

Udostępnij za pośrednictwem


UIView.SafeAreaLayoutGuide Property

Definition

Gets the layout guide for placing the content so that navigation and tab bars, toolbars, and other content does not obscure the view of the content.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UILayoutGuide SafeAreaLayoutGuide { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("safeAreaLayoutGuide", ObjCRuntime.ArgumentSemantic.Strong)] get; }
member this.SafeAreaLayoutGuide : UIKit.UILayoutGuide

Property Value

Attributes

Remarks

Introduced in iOS 11, this property and the related SafeAreaInsets property describe the insets at the edges of the UIView that may obscure the developer's content.

This property is valid only after the UIView has been added to the view hierarchy and laid out (for instance, it will be valid in ViewDidAppear(Boolean)).

Applies to