【发布时间】:2016-04-11 17:48:34
【问题描述】:
在 iOS 7 中,我们做了一个自定义动画过渡到一个新的视图控制器,动画的完成是:
[self.animatedView removeFromSuperview]; //superview == self.view, in this case
[self presentViewController:newController animated:NO completion:nil];
这在
【问题讨论】:
-
我遇到了同样的问题。除了@tdevoy 的建议使用
UIViewControllerAnimatedTransitioning,您是否找到了解决方案? -
不,我最终使用了动画过渡,尽管做了完全相同的事情,但它添加了 70 行代码,执行速度较慢,并且存在其他问题。这就是您使用 Apple 库所获得的。
-
iOS 8 为这些东西提供了 UIPresentationController。
标签: ios objective-c uiviewcontroller ios8