Instance Method


Asks the delegate for the presentation style to use when the specified set of traits are active.


- (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller traitCollection:(UITraitCollection *)traitCollection;



The presentation controller that is managing the size change. Use this object to retrieve the view controllers involved in the presentation.


The traits representing the target environment. Use these traits to determine

Return Value


The presentation controller calls this method when the traits of the current environment are about to change. Your implementation of this method can return the preferred presentation style to use for the specified traits. If you do not return one of the allowed styles, the presentation controller uses its preferred default style.

If you do not implement this method in your delegate, UIKit calls the adaptivePresentationStyleForPresentationController: method instead.

See Also

Adapting the Presentation Style

- adaptivePresentationStyleForPresentationController:

Asks the delegate for the new presentation style to use.