美文网首页
UIView 旋转动画

UIView 旋转动画

作者: 来敲代码 | 来源:发表于2019-08-27 11:18 被阅读0次
-(void)startAnimation
{
    CGAffineTransform endAngle = CGAffineTransformMakeRotation(self.angle * (M_PI / -180.0f));
     CGAffineTransform endAngle0 = CGAffineTransformMakeRotation(self.angle * (M_PI / 180.0f));
    [UIView animateWithDuration:0.1 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
        self.circleImageView.transform = endAngle;
        self.innercircleImageView.transform = endAngle0;
    } completion:^(BOOL finished) {
        self.angle += 10;
        [self startAnimation];
    }];
}

相关文章

网友评论

      本文标题:UIView 旋转动画

      本文链接:https://www.haomeiwen.com/subject/hmgsectx.html