編輯

共用方式為


UIView.NeedsUpdateConstraints Method

Definition

Indicates that the Auto Layout constraints of the UIView need updating.

[Foundation.Export("needsUpdateConstraints")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool NeedsUpdateConstraints ();
abstract member NeedsUpdateConstraints : unit -> bool
override this.NeedsUpdateConstraints : unit -> bool

Returns

If this method returns true, the Auto Layout system will call UpdateConstraints() during its layout pass.

Attributes

Remarks

This method is checked by the Auto Layout system to determine if the Constraints for this UIView need updating. If this method returns true, the method UpdateConstraints() will be called and should perform the updates.

Applies to

See also