Type Method


Deactivates each constraint in the specified array.


+ (void)deactivateConstraints:(NSArray<NSLayoutConstraint *> *)constraints;



An array of constraints to deactivate.


This is a convenience method that provides an easy way to deactivate a set of constraints with one call. The effect of this method is the same as setting the active property of each constraint to NO. Typically, using this method is more efficient than deactivating each constraint individually.

See Also

Activating and Deactivating Constraints


The active state of the constraint.

+ activateConstraints:

Activates each constraint in the specified array.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software