Instance Method

visualizeConstraints:

Displays a visual representation of the supplied constraints in the window.

Declaration

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

Parameters

constraints

The constraints to visualize. All constraints must be held by views in the window.

Discussion

The constraints to visualize are typically discovered by identifying a view whose layout is unexpected and then calling constraintsAffectingLayoutForOrientation: on that view.

This method should only be used for debugging constraint-based layout. No application should ship with calls to this method as part of its operation.