Instance Property

preferredContentSize

The preferred size for the container’s content.

Required.

Declaration

@property(nonatomic, readonly) CGSize preferredContentSize;

Discussion

The UIViewController class implements a writable version of this property.

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.

- systemLayoutFittingSizeDidChangeForChildContentContainer:

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

Required.