UIView.SafeAreaLayoutGuide Proprietà

Definizione

Ottiene la guida al layout per inserire il contenuto in modo che la barra di spostamento e le barre delle schede, le barre degli strumenti e altri contenuti non vengano oscurate dalla visualizzazione del contenuto.

[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

Valore della proprietà

Attributi

Commenti

Introdotta in iOS 11, questa proprietà e la proprietà correlata SafeAreaInsets descrivono gli inset ai bordi del contenuto dello UIView sviluppatore.

Questa proprietà è valida solo dopo l'aggiunta UIView alla gerarchia di visualizzazione e la disposizione (ad esempio, sarà valida in ViewDidAppear(Boolean)).

Si applica a