UIView.RequiresConstraintBasedLayout 方法

定义

指示 UIView 使用自动布局。

[Foundation.Export("requiresConstraintBasedLayout")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool RequiresConstraintBasedLayout ();
static member RequiresConstraintBasedLayout : unit -> bool

返回

默认值为 false

属性

注解

如果应用程序开发人员依赖于自动布局,UIView则应重写此方法以返回true

适用于