title: UIRotationGestureRecognizer rotation sometimes bumps to very large value
body: <p>I'm using a <code>UIRotationGestureRecognizer</code> to rotate a <code>UIImageView</code>. By adding all small rotation changes to a <code>CGFloat</code>, I try to calculate the total rotation of the <code>UIImageView</code>. It does fine, but somehow the <code>rotation</code> property of the gesture sometimes has a very large value. Normally, when rotating slow, it sits around 0.00##, but then it suddenly starts giving values like 6.##. The end result is a total of > 300 radians, which is ridiculous - over 47 'revolutions' for just a millimeter worth of finger movement.</p>
  
  <p>Does anyone know what causes this, and more importantly, have a solution to it?</p>
  
  <p>Here's some code:</p>
  
  <pre><code>if ([gesture state] == UIGestureRecognizerStateBegan || [gesture state] == UIGestureRecognizerStateChanged) 
  {
      totalRotation += [gesture rotation];
      NSLog(@"%f", [gesture rotation]);
  
      [gesture view].transform = CGAffineTransformRotate([[gesture view] transform], [gesture rotation]);
  
      [gesture setRotation:0];
  } 
  else 
  {
      NSLog(@"rot: %f", totalRotation);
  }
  </code></pre>