Type Method

activateConstraints:

Activates each constraint in the specified array.

Declaration

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

Parameters

constraints

An array of constraints to activate.

Discussion

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

See Also

Activating and Deactivating Constraints

active

The active state of the constraint.

+ deactivateConstraints:

Deactivates each constraint in the specified array.