Instance Method


Called to notify the view controller that its view is about to layout its subviews.


func viewWillLayoutSubviews()


When a view'€™s bounds change, the view adjusts the position of its subviews. Your view controller can override this method to make changes before the view lays out its subviews. The default implementation of this method does nothing.

See Also

Configuring the View’s Layout Behavior

var edgesForExtendedLayout: UIRectEdge

The edges that you extend for your view controller.

struct UIRectEdge

Constants that specify the edges of a rectangle.

var extendedLayoutIncludesOpaqueBars: Bool

A Boolean value indicating whether or not the extended layout includes opaque bars.

func viewDidLayoutSubviews()

Called to notify the view controller that its view has just laid out its subviews.

func updateViewConstraints()

Called when the view controller'€™s view needs to update its constraints.