Wednesday, 28 August 2013

Exclude subview to be tapped


-(void) gestureTap:(UITapGestureRecognizer *)sender 
{
    CGPoint point = [sender locationInView:sender.view];
    UIView *dontTouchView = [sender.view hitTest:point withEvent:nil];
    if ([dontTouchView isKindOfClass:[UIImageView class]]) 
{  // Do whatever u want
    } else 
{
     // Do whatever u want 
    }

}