Instance Method


Called to notify the presentation controller that layout ended on the views of the container view.


func containerViewDidLayoutSubviews()


UIKit calls this method after adjusting the layout of the views in the container view. Use this method to make any additional changes to the view hierarchy.

See Also

Adjusting the Size and Layout of the Presentation

var frameOfPresentedViewInContainerView: CGRect

The frame rectangle to assign to the presented view at the end of the animations.

var overrideTraitCollection: UITraitCollection?

Interface traits for the presented view controller, to use in place of traits from the iOS environment.

func containerViewWillLayoutSubviews()

Notifies the presentation controller that layout is about to begin on the views of the container view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software