I used the simple way below. It works perpectly!
Implement UIGestureRecognizerDelegate function, accept only touchs on superview, not accept touchs on subviews:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
if (touch.view != _mySuperView) { // accept only touchs on superview, not accept touchs on subviews
return NO;
}
return YES;
}