2011-11-16 69 views
1

我正在試圖製作一個動畫,看起來像是當它正在查找信息時飛過Siri麥克風圖標周圍的火球。基本上它是一個繞着一個圓圈飛行並在其後面留下痕跡的物體。CAKeyframeAnimation創建類似於Siri的火球

關於如何解決這個問題的任何想法?

這是我到目前爲止有:

CAKeyframeAnimation *a = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 
a.duration = 2.0; 
a.rotationMode = kCAAnimationRotateAuto; 
a.path = [UIBezierPath bezierPathWithOvalInRect:self.frame].CGPath; 
[test.layer addAnimation:a forKey:@"moveCircle"]; 

編輯:步道是最困難的部分

回答

0

爲什麼在Photoshop中不能創建它,然後旋轉圖像?