复习iOS动画-Layer Time

来源:互联网 发布:淘宝信用卡避免手续费 编辑:程序博客网 时间:2024/05/17 07:57

1.CAMediaTiming beginTime,duration,repeateDuration等衡量时间的属性,都是相对parent time space而言,speed控制parent time space是如何映射到receiver‘s time space的,例如speed=2.0,那么将2倍快于parent time space

2.timeOffset不受speed影响,他只反映什么时间该是什么状态,不管状态变化是被加快了还是放慢了。

3.kCAFillModeForwards->fill between current time and beginTime with first frame of animation  kCAFillModeBackwards -> fill last frame of animation from end animation time          kCAFillModeBoth-> kCAFillModeForwards | kCAFillModeBackwards     kCAFillModeRemoved->default, no fill

4.beginTime 表示parent动画开始多久后,开始自身的动画,parent的speed将以系数作用于所有children的时间

5.convertTime:fromLayer: convertTime:toLayer:

6.将speed置为0可以暂定动画,并用timeOffset手动控制动画进度

0 0
原创粉丝点击