I'm rotating an UIView
along the x axis using CATransform3DMakeRotation
using the below code:
float radians = DegreesToRadians(30);
[UIView animateWithDuration:0.15 animations:^{
self.moveControlView.layer.transform = CATransform3DMakeRotation(radians,1,0,0);
}];
The rotation is applied always in the same versus (clockwise). I want to rotate the UIView
in the opposite versus.
In order to achieve my goal I've tried:
- Set a negative angle (-30)
- Set the angle to 330
But the versus of the orientation doesn't change.
I have also try to set x = -1
leaving the angle positive.
Any suggestion?