2013-07-13 23 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]; 
     } 
    }]; 

回答