UIView.InsetsLayoutMarginsFromSafeArea 属性

定义

获取或设置一个布尔值,该值控制边距是否调整为始终位于安全区域内。 默认值为 true

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool InsetsLayoutMarginsFromSafeArea { [Foundation.Export("insetsLayoutMarginsFromSafeArea")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setInsetsLayoutMarginsFromSafeArea:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.InsetsLayoutMarginsFromSafeArea : bool with get, set

属性值

属性

适用于