Instance Property

delegate

The delegate object for managing adaptive presentations.

Declaration

@property(nonatomic, weak) id<UIAdaptivePresentationControllerDelegate> delegate;

Discussion

When the app’s size changes, the presentation controller works with this delegate object to determine an appropriate response. View controllers presented using the UIModalPresentationFormSheet, UIModalPresentationPopover, or UIModalPresentationCustom style must change to use one of the full-screen presentation styles instead. The delegate can also opt to change the presented view controller entirely.

The object you assign to this property must conform to the UIAdaptivePresentationControllerDelegate protocol.

See Also

Adapting Your Presentations Dynamically

UIAdaptivePresentationControllerDelegate

A set of methods that, in conjunction with a presentation controller, determine how to respond to trait changes in your app.