我正在尝试旋转 CALayer,首先我将它旋转 -30 度,所以它向左转。
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
self.transform = CGAffineTransformMakeRotation(DEGREES_TO_RADIANS(-30));
[UIView commitAnimations];
现在我希望它完成旋转,从左开始再旋转一次,但它采用最短路径。
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
self.transform = CGAffineTransformMakeRotation(DEGREES_TO_RADIANS(-30));
[UIView commitAnimations];
我怎样才能强制它的旋转方向?