Instance Method

systemLayoutFittingSizeDidChange(forChildContentContainer:)

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

Required.

Declaration

func systemLayoutFittingSizeDidChange(forChildContentContainer container: UIContentContainer)

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 systemLayoutSizeFitting(_:) method, the systemLayoutFittingSizeDidChange(forChildContentContainer:) method is sent to the parent view controller.

See Also

Responding to Changes in Child View Controllers

func size(forChildContentContainer: UIContentContainer, withParentContainerSize: CGSize) -> CGSize

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

Required.

func preferredContentSizeDidChange(forChildContentContainer: UIContentContainer)

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

Required.

var preferredContentSize: CGSize

The preferred size for the container’s content.

Required.