复习iOS动画-Layer Time

    xiaoxiao2021-12-14  18

    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手动控制动画进度

    转载请注明原文地址: https://ju.6miu.com/read-965153.html

    最新回复(0)