Instance Method

invalidateIntrinsicContentSize

Invalidates the view’s intrinsic content size.

Declaration

- (void)invalidateIntrinsicContentSize;

Discussion

Call this when something changes in your custom view that invalidates its intrinsic content size. This allows the constraint-based layout system to take the new intrinsic content size into account in its next layout pass.

See Also

Measuring in Auto Layout

- systemLayoutSizeFittingSize:

Returns the optimal size of the view based on its current constraints.

- systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:

Returns the optimal size of the view based on its constraints and the specified fitting priorities.

intrinsicContentSize

The natural size for the receiving view, considering only properties of the view itself.

- contentCompressionResistancePriorityForAxis:

Returns the priority with which a view resists being made smaller than its intrinsic size.

- setContentCompressionResistancePriority:forAxis:

Sets the priority with which a view resists being made smaller than its intrinsic size.

- contentHuggingPriorityForAxis:

Returns the priority with which a view resists being made larger than its intrinsic size.

- setContentHuggingPriority:forAxis:

Sets the priority with which a view resists being made larger than its intrinsic size.