我希望通过pushViewController使用UIModalTransitionStyle将上下文传递到我的导航堆栈中。它在模式下工作,这多亏了
nav.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext对于pushViewController,有没有类似的东西?
发布于 2018-03-16 22:42:03
对于额外的控制器过渡动画,我推荐这个库:
https://github.com/lkzhao/Hero
然后你可以像这样推送你的导航控制器:
let vc = ViewController()
vc.hero.modalAnimationType = .slideLeft
hero.replaceViewController(with: vc)它有大量的动画类型,在他们的页面上有记录。
https://stackoverflow.com/questions/49322217
复制相似问题