Instance Method

removeConstraints:

Removes the specified constraints from the view.

Declaration

- (void)removeConstraints:(NSArray<__kindof NSLayoutConstraint *> *)constraints;

Parameters

constraints

The constraints to remove.

Discussion

When developing for iOS 8.0 or later, use the NSLayoutConstraint class’s deactivateConstraints: method instead of calling the removeConstraints: method directly. The deactivateConstraints: method automatically removes the constraints from the correct views.

See Also

Managing the View’s Constraints

constraints

The constraints held by the view.

- 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.