我正在尝试使用CAAnimation在我的应用程序中切换视图控制器。当我在这两个特定的视图控制器之间切换时,我不想要任何动画。这个是可能的吗?如果是这样,我将如何实现这一点?
谢谢!
发布于 2011-09-30 04:58:27
将持续时间设置为0如何:
BOOL shouldAnimate = // here you set your condition whether to animate or not
CFTimeInterval standartDuration = 1.0;
CAAnimation *animation = [CAAnimation animation];
animation.duration = shouldAnimate ? standartDuration : 0.0;https://stackoverflow.com/questions/7600605
复制相似问题