title: My UIRotationGestureRecgonizer handler callback not getting called in iOS
body: <p>I am trying to rotate the custom view added to the main view. I have tried to add the gesture recognizer to both main view and sub view. Here is my code</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      UIView *demoView = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
      UIRotationGestureRecognizer *rg= [[UIRotationGestureRecognizer alloc]initWithTarget:self action:@selector(handleTap:)];
      [rg setDelegate:self];
      self.view.userInteractionEnabled = YES;
      demoView.userInteractionEnabled = YES;
      [demoView addGestureRecognizer:rg];
      [self.view addGestureRecognizer:rg];
      demoView.backgroundColor = [UIColor orangeColor];
      [self.view addSubview:demoView];
  }
  
  -(IBAction)handleTap:(UIRotationGestureRecognizer *)recognizer
  {
      //NSLog(@"HERE");
      recognizer.view.transform = CGAffineTransformMakeRotation([recognizer rotation]);
      recognizer.rotation = 0;
      //NSLog(@"AND HERE");
  }
  </code></pre>