最近在看转场动画问题,心中有些疑惑就查了一些信息.
从VC1 present VC2
VC1 就充当presenting view controller
VC2就是presented view controller
UIViewControllerTransitioningDelegate 方法:
(nullable id )animationControllerForPresentedController:(UIViewController )presented presentingController:(UIViewController )presenting sourceController:(UIViewController *)source;
(nullable id )animationControllerForDismissedController:(UIViewController *)dismissed;
(nullable id )interactionControllerForPresentation:(id )animator;
(nullable id )interactionControllerForDismissal:(id )animator;
(nullable UIPresentationController )presentationControllerForPresentedViewController:(UIViewController )presented presentingViewController:(nullable UIViewController )presenting sourceViewController:(UIViewController )source NS_AVAILABLE_IOS(8_0);
控制器要遵循UIViewControllerTransitioningDelegate代理.看了些d