title: iPhone Cocos2D - finger rotating a sprite
body: <p>I have subclassed CCSprite class and added a UIRotationGestureRecognizer to it. So, in my init method I have this</p>
  
  <pre><code>UIRotationGestureRecognizer *rot = [[[UIRotationGestureRecognizer alloc]
                           initWithTarget:self action:@selector(handleRotation:)] autorelease];
  [rot setDelegate:self];
  [[[CCDirector sharedDirector] openGLView] addGestureRecognizer:rot];
  </code></pre>
  
  <p>and then I have the method</p>
  
  <pre><code>- (void)handleRotation:(UIRotationGestureRecognizer *)recognizer {
  
      float rotation = [recognizer rotation];
      self.rotation += rotation;
  }
  </code></pre>
  
  <p>it works perfectly but it has a huge lag between the actual gesture and the rotation itself. I would say almost 0.5 seconds between the gesture and the sprite response.</p>
  
  <p>How do I solve that? thanks.</p>
  
  <hr>
  
  <p>NOTE: After the first comment, I have added two more recognizers to the sprite: UIPinchGestureRecognizer and UIPanGestureRecognizer. I have also added the delegate method shouldRecognizeSimultaneouslyWithGestureRecognizer and set that to YES.</p>
  
  <p>After doing this and checking, pinch and pan gestures are fast as hell. On the other hand, rotation continues slow. There was not reduction on the rotation speed by adding these two other gestures recognizer. The other two respond fluid and fast, UIRotationGestureRecognizer is slow.</p>