CAKeyframeAnimation 运行路径 速度控制

 CAKeyframeAnimation *Animation = [CAKeyframeAnimation animationWithKeyPath:@"position"];
    
    Animation.duration  = 2;
    
    Animation.path = thePath.CGPath;
    
    Animation.calculationMode = kCAAnimationPaced;
    
     Animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];

 

posted @ 2013-01-29 15:15  高笑228  阅读(336)  评论(0编辑  收藏  举报