UIView.AddConstraint(NSLayoutConstraint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Constraints
- <xref:UIKit.UIView.AddConstraints>
- <xref:UIKit.UIView.RemoveConstraint>
- <xref:UIKit.UIView.RemoveConstraints>
- TranslatesAutoresizingMaskIntoConstraints