The methods of the
UIContent protocol help you adapt the contents of your view controllers to size and trait changes. All
UIPresentation objects provide default implementations for the methods of this protocol. When creating your own custom view controller or presentation controller, you can override the default implementations to make adjustments to your content. For example, you might use these methods to adjust the size or position of any child view controllers.
- iOS 8.0+
- tvOS 9.0+
When overriding the methods of this protocol, you should generally call
super to give UIKit a chance to perform any default behaviors. View controllers and presentation controllers perform their own adjustments when these methods are called. Calling
super ensures that UIKit is able to continue making the changes it needs to adapt your interface to changes.