Instance Method

preferredContentSizeDidChangeForChildContentContainer:

Notifies an interested controller that the preferred content size of one of its children changed.

Required.

Declaration

- (void)preferredContentSizeDidChangeForChildContentContainer:(id<UIContentContainer>)container;

Parameters

container

The child view controller whose preferred content size has changed.

Discussion

UIKit calls this method on a container view controller when the preferredContentSize property of one of its child view controllers changes. Similarly, if the view controller is managed by a presentation controller, UIKit calls this method on the presentation controller to let it know of the change. The parent view controller or presentation controller can use this method to initiate layout adjustments based on the new size information.

See Also

Responding to Changes in Child View Controllers

- sizeForChildContentContainer:withParentContainerSize:

Returns the size of the specified child view controller’s content.

Required.

- systemLayoutFittingSizeDidChangeForChildContentContainer:

Notifies the container that a child view controller was resized using auto layout.

Required.

preferredContentSize

The preferred size for the container’s content.

Required.