iPhone CAAnimations连续播放 [英] iPhone CAAnimations playing serially
问题描述
是否可以在开始时定义所有CAAnimations并在不使用委托的情况下一个接一个地连续播放它们,就像我们在CAAnimationGroup中所做的那样,同时播放动画。相反,我只是希望它们能够连续播放。
Is it possible to define all CAAnimations at start and play them one after another serially without using delegates, like what we do in CAAnimationGroup, where in animations are played simultaneously. Instead I just want them to play serially.
推荐答案
运行一组 CAAnimation $ c按顺序设置$ c>动画,将它们分组到
CAAnimationGroup
并设置 beginTime
和持续时间每个
,以便它们一个接一个地运行。 CAAnimation
的
To run a set of CAAnimation
animations in sequence, group them in a CAAnimationGroup
and set the beginTime
and duration
of each CAAnimation
so that they are run one after the other.
大多数人错过这些属性,因为它们是在 CAMediaTiming
中定义的, CAAnimation
符合。
Most people miss these properties because they're defined in the CAMediaTiming
, which CAAnimation
conforms to.
这篇关于iPhone CAAnimations连续播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!