Resume CABasicAnimation using negative speed?
问题 I resume my CABasicAnimation with the following code: CFTimeInterval pausedtime = layer.timeOffset; layer.speed = 1.0; layer.timeOffset = 0.0; layer.beginTime = [layer convertTime:CACurrentMediaTime() toLayer:nil] - pausedTime; which is pretty straightforward. At the very end of this article the author states that with negative speed value animation reverses. I can't understand what timeOffset and beginTime should look like in this case? P.S. I am aware that I can reverse animation by