Instance Method

systemLayoutFittingSizeDidChangeForChildContentContainer:

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

Required.

Declaration

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

Parameters

container

The child view controller that received the resizing message.

Discussion

This method is called when a view controller that does not use auto layout has a child view controller that uses auto layout and the child view controller is resized. When the child view controller responds to the systemLayoutSizeFittingSize: method, the systemLayoutFittingSizeDidChangeForChildContentContainer: method is sent to the parent view controller.

See Also

Responding to Changes in Child View Controllers

- sizeForChildContentContainer:withParentContainerSize:

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

Required.

- preferredContentSizeDidChangeForChildContentContainer:

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

Required.

preferredContentSize

The preferred size for the container’s content.

Required.