-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { NSSet *touches = [event allTouches]; BOOL forwardToSuper = YES; for (UITouch *touch in touches) { if ([touch tapCount] >= 2) { // prevent this forwardToSuper = NO; } } if (forwardToSuper){ //return self.superview; return [super hitTest:point withEvent:event]; } else { // Return the superview as the hit and prevent // UIWebView receiving double or more taps return self.superview; } } |