iOS.Animation.CAMediaTiming

CAMediaTiming Protocol

CALayre 和 CAAnimation 实现了CAMediaTiming 接口。 

CAMediaTiming 定义了8个属性。

speed属性:

Controlling the speed of an animation or a layer can also be used to pause the animation

by setting the speed to 0. 

将speed设置为0可以来暂停动画。

下面这个Demo演示speed的使用:

https://github.com/d-ronnqvist/blogpost-codesample-PullToRefresh

Reference:

1. Controlling Animation Timing

http://ronnqvi.st/controlling-animation-timing/

iOS.Animation.CAMediaTiming,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。