Currently i am using UIRotationGestureRecognizer to rotate my image and my image currently rotating smoothly.
The code which i am using is
CGFloat imageRotationDegree;
if ([gesture state] == UIGestureRecognizerStateBegan || [gesture state] == UIGestureRecognizerStateChanged)
{
[gesture view].transform = CGAffineTransformRotate([[gesture view] transform], [gesture rotation]);
[gesture setRotation:0];
imageRotationDegree=[gesture rotation];
}
NSLog(@"Rotation in Degrees: %f", imageRotationDegree);
So the problem is it is always printing rotation degree as zero.So that i am unable to save the current rotation degree.
Also if i change [gesture setRotation:0];
to some other degree then rotation is not smooth.
So How can i print different rotation degree with smooth rotation.