Type Method

deactivateConstraints:

Deactivates each constraint in the specified array.

Declaration

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

Parameters

constraints

An array of constraints to deactivate.

Discussion

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

active

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