#pragma mark 代理方法
//模态控制器时调用
- (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source;
{
self.type = TransitionTypeModal;
return self;
}
//dismiss调用
- (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed;
{
self.type = TransitionTypeDismiss;
return self;
}