Instance Method

updateConstraintsForSubtreeIfNeeded

Updates the constraints for the receiving view and its subviews.

Declaration

- (void)updateConstraintsForSubtreeIfNeeded;

Discussion

Whenever a new layout pass is triggered for a view, the system invokes this method to ensure that any constraints for the view and its subviews are updated with information from the current view hierarchy and its constraints. This method is called automatically by the system, but may be invoked manually if you need to examine the most up to date constraints.

Subclasses should not override this method.

See Also

Triggering Auto Layout

needsLayout

A Boolean value indicating whether the view needs a layout pass before it can be drawn.

- layout

Perform layout in concert with the constraint-based layout system.

- layoutSubtreeIfNeeded

Updates the layout of the receiving view and its subviews based on the current views and constraints.

needsUpdateConstraints

A Boolean value indicating whether the view’s constraints need to be updated.

- updateConstraints

Update constraints for the view.