CGAffineTransformMakeRotation
と を使用して画像を回転させようとしましたCGAffineTransformRotate
。画像を元の画像から時計回りに元の画像に再び回転させたい(0度から360度のように)。プレーヤーでCDのように画像を回転させる必要があります。私はこのようなことをしました:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.1];
CGAffineTransform transform = CGAffineTransformMakeRotation(1.0);
transform = CGAffineTransformRotate(transform, -180);
ImageView.transform = transform;
[UIView commitAnimations];
180度回転するだけで、-300度に変更すると反時計回りに回転します(これは必要ありません)。