2013-07-13 22 views
0

我擁有一個圖像作爲ci-below附件!帶圖像和麪具的動畫旋轉器加載程序

我想製作一個加載器來表示這個動畫的加載器(ci-below)!

我對這個代碼有一個小小的想法,但是嗯,我希望你對此事的看法,如果可能的話,不同的想法如何實現它!

Image for my loader animation

Animation as wanted !

快速概念代碼:

[UIView animateWithDuration:1.0f delay:0.0f options: UIViewAnimationCurveLinear animations:^(void) { 
     //rotate half way (use 179.9 for direction, -179.9 is left) 
     self.refreshButton.transform = CGAffineTransformRotate(self.refreshButton.transform,179.9*M_PI/180); 
    } completion:^(BOOL finished) { 
     //still loading? rotate half again 
     if ([self.superAwesomeWebView isLoading]) { 
      [self animateLoadButton]; 
     } 
    }]; 

回答