iPhone CAAnimations连续播放 [英] iPhone CAAnimations playing serially

查看:64
本文介绍了iPhone CAAnimations连续播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在开始时定义所有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 动画,将它们分组到 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆