我拥有一个图像,作为ci-下面附!
我想做一个加载程序,加载是代表这个动画(ci-下面)!
我有一个小的想法,,我所使用的代码,但嗯,我想要您的意见,如果可能的话,在如何实现它的不同想法!


快速概念代码:
[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];
}
}];发布于 2013-07-13 01:57:10
这应该能起作用(需要ARC):
https://stackoverflow.com/questions/17626135
复制相似问题