title: UIRotationGestureRecognizer
body: <p>I have a very weird problem, I am implementing UIRotationGestureRecognizer in my application to rotate an image. My problem is that sometimes when you start rotating the image it jumps to the other finger. 
  Example: I am dragging my image with one finger, and after that I use my second finger to start rotating, but the image goes to the second finger. Is that normal? can it be fixed?
  The code I am using is:</p>
  
  <pre><code>if([recognizer state] == UIGestureRecognizerStateEnded) {
  
      prevRotation = 0.0;
      return;
  }
  
  CGFloat newRotation = 0.0 - (prevRotation - [recognizer rotation]);
  
  CGAffineTransform currentTransformation = image.transform;
  CGAffineTransform newTransform = CGAffineTransformRotate(currentTransformation, newRotation);
  
  image.transform = newTransform;
  
  prevRotation = [recognizer rotation];
  </code></pre>
  
  <p>I tried saving the last location of the center and applying it again, but it is not working either, like this:</p>
  
  <pre><code>lastPoint=image.center;
  
  if([recognizer state] == UIGestureRecognizerStateEnded) {
  
      prevRotation = 0.0;
      return;
  }
  
  CGFloat newRotation = 0.0 - (prevRotation - [recognizer rotation]);
  
  CGAffineTransform currentTransformation = image.transform;
  CGAffineTransform newTransform = CGAffineTransformRotate(currentTransformation, newRotation);
  
  image.transform = newTransform;
  
  prevRotation = [recognizer rotation];
  image.center=lastPoint;
  </code></pre>