所以我有一个UINavigationController,控制器A作为根控制器.
当我想将Controller B推到最顶层时,我想使用自定义动画过渡和自定义交互式过渡.这很好用.
当我想将Controller C推到最顶层时,我想回到UINavigationController附带的默认推/弹转换.为了实现这一点,我返回零
navigationController:animationControllerForOperation:fromViewController:toViewController:
Run Code Online (Sandbox Code Playgroud)
但是,如果你返回nil,那么
navigationController:interactionControllerForAnimationController:
Run Code Online (Sandbox Code Playgroud)
永远不会被调用,默认的"从左边缘平移"弹出式交互式转换不起作用.
有没有办法返回默认的推/动画动画控制器和交互控制器?(是否有具体的实现id<UIViewControllerAnimatedTransitioning>和id<UIViewControllerInteractiveTransitioning>?)
或者其他一些方式?