편집

다음을 통해 공유


UIView.AddConstraint(NSLayoutConstraint) Method

Definition

Adds a constraint to the layout of the receiving view or its subviews.

[Foundation.Export("addConstraint:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddConstraint (UIKit.NSLayoutConstraint constraint);
abstract member AddConstraint : UIKit.NSLayoutConstraint -> unit
override this.AddConstraint : UIKit.NSLayoutConstraint -> unit

Parameters

constraint
NSLayoutConstraint

A NSLayoutConstraint to add. The constraint must refer only to the receiving view or its subviews.

Attributes

Remarks

The constraint must refer only to the receiving view or its subviews.

Applies to

See also