Upravit

Sdílet prostřednictvím


UIViewController.TopLayoutGuide Property

Definition

Developers should not use this deprecated property. Instead, they should use SafeAreaLayoutGuide.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIView.SafeAreaLayoutGuide.TopAnchor' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIView.SafeAreaLayoutGuide.TopAnchor' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.IUILayoutSupport TopLayoutGuide { [Foundation.Export("topLayoutGuide")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIView.SafeAreaLayoutGuide.TopAnchor' instead.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIView.SafeAreaLayoutGuide.TopAnchor' instead.")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.TopLayoutGuide : UIKit.IUILayoutSupport

Property Value

The top-most extent for the specified onscreen content (read-only).

Attributes

Remarks

This deprecated property holds the highest vertical extent of onscreen content. Used by Auto Layout constraints. Read-only.

Applies to