Returns the size of the specified child view controller’s content.
- iOS 8.0+
- tvOS 9.0+
The child view controller.
The size of the parent view controller.
The size to apply to the child view controller.
Container view controllers use this method to return the sizes for their child view controllers. UIKit calls the method as part of the default implementation of the
view method for view controllers. It calls the method once for each child view controller embedded in the view controller. If you are implementing a custom container view controller, you should override this method and use it to return the sizes of the contained children.
View controllers and presentation controllers return the value in
parent by default.