view无限旋转

- (void) showRefreshAnimation {
    [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
        self.refreshIcon.transform = CGAffineTransformRotate(self.refreshIcon.transform, 360);
    } completion:^(BOOL finished) {
        if (self.canRotate) {
            [self showRefreshAnimation];
        }
        else {
//            self.refreshIcon.transform = CGAffineTransformRotate(CGAffineTransformIdentity, 0);
        }
    }];
}

 

posted @ 2016-01-22 10:52  Dadada胖纸er  阅读(177)  评论(0编辑  收藏  举报