我试图循环部分圆圈以实现动画,但它只转动 180 度,然后从 0 度重新开始到 180 度。所以有一个从 180 度到 360 度的突然跳跃。如何让我的圆形图像对象连续旋转而没有任何跳跃?这是我当前的代码:
UIViewAnimationOptions options = UIViewAnimationOptionCurveLinear|UIViewAnimationOptionRepeat;
[UIView animateWithDuration:ROTATE_ANIMATION_DURATION/2 delay:0 options:options
animations:^{
view.transform = CGAffineTransformRotate(transform, M_PI);}//1st step of animation finished
completion:^(BOOL finished) {
[UIView animateWithDuration:ROTATE_ANIMATION_DURATION/2 delay:0 options:options
animations:^{
view.transform = CGAffineTransformRotate(transform, M_PI);} //2nd step of animation finished
completion:^(BOOL finished) {nil;
}];