Instance Method


Asks the delegate for the new presentation style to use.


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



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

Return Value


In iOS 8.3 and later, use the adaptivePresentationStyleForPresentationController:traitCollection: method to handle all trait changes instead of this method. If you do not implement that method, you can use this method to change the presentation style when transitioning to a horizontally compact environment.

If you do not implement this method or if you return an invalid style, the current presentation controller returns its preferred default style.

See Also

Adapting the Presentation Style

- adaptivePresentationStyleForPresentationController:traitCollection:

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