UIKit.UIView.AddConstraint Method
Adds a constraint to the layout of the receiving view or its subviews.

Syntax

[Foundation.Export("addConstraint:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual void AddConstraint (NSLayoutConstraint constraint)

See Also

UIView.Constraints
UIView.AddConstraints
UIView.RemoveConstraint
UIView.RemoveConstraints
UIView.TranslatesAutoresizingMaskIntoConstraints

Parameters

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

Remarks

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

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0