I want to perform some rotation animation. Right now I do it like that:
#define degreesToRadians(x) (M_PI * x / 180.0)
[self.crossButton setTransform:CGAffineTransformRotate(self.crossButton.transform, degreesToRadians(-rotationDegree))];
but when I pass for instance 360 degrees nothong happens. When I pass value above 180 it starts not wokring well. Do you know what im doing wrong?
本文解答了在iOS中使用CGAffineTransformRotate进行旋转动画时遇到的问题,特别是关于角度转换和动画执行过程中可能出现的反转现象。
2838






