Comprehend pause and resume animation on a layer
问题 I am studying Animation in Core Animation Programming Guide and I get stuck on comprehending pause and resume animation on a layer. The document tells me how to pause and resume animation without clear explanation. I think the key is to understand what is timeOffset and beginTime method of CAlayer . These code is pause and resume animation. In resumeLayer method, layer.beginTime = timeSincePause; this line really make me confused. -(void)pauseLayer:(CALayer*)layer { CFTimeInterval pausedTime