【发布时间】:2018-12-21 12:36:21
【问题描述】:
我如何才能为单个 UIViewController 推送/弹出自定义动画,并为同一 UINavigationController 中的其他 UIViewControllers 设置默认动画?
我使用UINavigationController 和push/pop 在不同的UIViewController 之间导航。我创建了自定义动画并将自定义UINavigationControllerDelegate 设置为UINavigationController.delegate。它的动画效果很好,但它改变了 UINavigationController 中所有未来推送/弹出的动画样式。
我知道我可以使用它的 transitioningDelegate 更改单个 UIViewController 的动画,但它只有在由 present() 显示而不是推送时才有效。
是否可以仅更改 UINavigationController 中单个 UIViewController 的动画?
【问题讨论】:
标签: ios swift3 uiviewcontroller uinavigationcontroller uiviewanimationtransition