QMUIModalPresentationViewControllerDelegate

@protocol QMUIModalPresentationViewControllerDelegate <NSObject>

@optional

/**
 *  是否应该隐藏浮层,会在调用`hideWithAnimated:completion:`时,以及点击背景遮罩时被调用。默认为YES。
 *  @param  controller  当前的modalController
 *  @return 是否允许隐藏,YES表示允许隐藏,NO表示不允许隐藏
 */
- (BOOL)shouldHideModalPresentationViewController:(QMUIModalPresentationViewController *)controller;

/**
 *  modalController 即将隐藏时的回调方法,在调用完这个方法后才开始做一些隐藏前的准备工作,例如恢复 window 的 dimmed 状态等。
 *  @param  controller  当前的modalController
 */
- (void)willHideModalPresentationViewController:(QMUIModalPresentationViewController *)controller;

/**
 *  modalController隐藏后的回调方法,不管是直接调用`hideWithAnimated:completion:`,还是通过点击遮罩触发的隐藏,都会调用这个方法。
 *  如果你想区分这两种方式的隐藏回调,请直接使用hideWithAnimated方法的completion参数,以及`didHideByDimmingViewTappedBlock`属性。
 *  @param  controller  当前的modalController
 */
- (void)didHideModalPresentationViewController:(QMUIModalPresentationViewController *)controller;

@end

Undocumented