摘要: //暂停layer上面的动画- (void)pauseLayer:(CALayer*)layer{ CFTimeInterval pausedTime = [layer convertTime:CACurrentMediaTime() fromLayer:nil]; layer.speed = 0.0; layer.timeOffset = pausedTime;}//继续layer上面的动画- (void)resumeLayer:(CALayer*)layer{ CFTimeInterval pausedTime = [layer timeOffset]; layer.speed ... 阅读全文
posted @ 2012-03-27 17:11 Kalou 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-03-27 10:52 Kalou 阅读(127) 评论(0) 推荐(0) 编辑