I am using code as below to rotate a UIView for 90 degrees, when I want to rotate 90 degrees again from last position and use the same code, nothing happened.
But when I change to below, it rotate 90 degree from last position, I want to know why, I checked Programming Guide and Class Reference about UIView, CGContext and CGAffineTransform, but still not clear, hope you can answer my question.
Code:
view.transform = CGAffineTransformMakeRotation(M_PI / 2);
Code:
view.transform = CGAffineTransformMakeRotation(M_PI);
Last edited: