Instance Property

preferredContentSize

The desired size of the view controller’s view, in screen units.

Declaration

@property NSSize preferredContentSize;

Discussion

Set this property to express the desired size for a view controller’s view. A parent view controller can consult the value of this property when performing layout.

See Also

Managing View Layout

updateViewConstraints

Called during Auto Layout constraint updating to enable the view controller to mediate the process.

viewWillLayout

Called just before the layout method of the view controller's view is called.

viewDidLayout

Called immediately after the layout method of the view controller's view is called.