Share via


UIView.UpdateConstraintsIfNeeded 方法

定义

汇报 及其 Subviews的约束UIView

[Foundation.Export("updateConstraintsIfNeeded")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void UpdateConstraintsIfNeeded ();
abstract member UpdateConstraintsIfNeeded : unit -> unit
override this.UpdateConstraintsIfNeeded : unit -> unit
属性

注解

应用程序开发人员不应重写此方法。

此方法在布局期间由自动布局系统调用。 应用程序开发人员可以调用它以确保约束是最新的。

适用于