父视图手势屏蔽子视图

2017-11-21  本文已影响0人  Poison_19ce

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

{

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

return NO;

}

return YES;

}

上一篇下一篇

猜你喜欢

热点阅读