Type Property

requiresConstraintBasedLayout

A Boolean value that indicates whether the receiver depends on the constraint-based layout system.

Declaration

@property(class, nonatomic, readonly) BOOL requiresConstraintBasedLayout;

Return Value

YES if the view must be in a window using constraint-based layout to function properly, NO otherwise.

Discussion

Custom views should override this to return YES if they cannot layout correctly using autoresizing.

See Also

Laying out Subviews

- layoutSubviews

Lays out subviews.

- setNeedsLayout

Invalidates the current layout of the receiver and triggers a layout update during the next update cycle.

- layoutIfNeeded

Lays out the subviews immediately, if layout updates are pending.

translatesAutoresizingMaskIntoConstraints

A Boolean value that determines whether the view’s autoresizing mask is translated into Auto Layout constraints.