让子视图不响应父视图的手势识别器
2018-02-08 本文已影响3人
AT19
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
if ([touch.view isDescendantOfView:self.yourView]) {
return NO;
}
return YES;
}