Instance Property

constraints

Returns the constraints held by the view.

Declaration

@property(readonly, copy) NSArray<NSLayoutConstraint *> *constraints;

Return Value

The constraints held by the view.

See Also

Managing the View’s Constraints

- addConstraint:

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

- addConstraints:

Adds multiple constraints on the layout of the receiving view or its subviews.

- removeConstraint:

Removes the specified constraint from the view.

- removeConstraints:

Removes the specified constraints from the view.