父视图手势屏蔽子视图

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch

{

if ([touch.view isDescendantOfView:self]) {

return NO;

}

return YES;

}

你可能感兴趣的:(父视图手势屏蔽子视图)