title: how to add gesture recognizer to ccsprite in cocos2d iphone?
body: <p>I am beginner in Cocos2D. I want to add gesture on particular CCSprite, but I got gesture on CCLayer. My requirement is to add gesture on CCSprite. How to do this?</p>
  
  <p>My code:</p>
  
  <pre><code>-(id) initWithMask
  {
  
      CCSprite *mask=[CCSprite spriteWithFile:@"circle_mask.png"];
      [self addChild:moveGlopFront z:1];
      UISwipeGestureRecognizer *swipeGestureRecognizer = [[UISwipeGestureRecognizer alloc]                     initWithTarget:self action:@selector(handlePushSceneGestureRecognizer:)];
      [self addGestureRecognizer:swipeGestureRecognizer];
  
      swipeGestureRecognizer.direction = UISwipeGestureRecognizerDirectionLeft;
  
      swipeGestureRecognizer.delegate = self;
  }
  
  -(void)handlePushSceneGestureRecognizer:(UISwipeGestureRecognizer*)aGestureRecognizer
  {
  
      for(CCNode *child in layer.children)
      {
          [child stopAllActions];
      }
  
      for(CCNode *child in layer.children)
      {
      [moveGlopFront setTexture:[moveGlopBack texture]];
      [moveGlopFront runAction:[CCRepeatForever actionWithAction:[CCRotateBy   actionWithDuration:5.0 angle:360]]];
      }
  
  }
  </code></pre>