-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
if ([touch.view isDescendantOfView:self.yourView]) {
return NO;
}
return YES;
}
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
if ([touch.view isDescendantOfView:self.yourView]) {
return NO;
}
return YES;
}
本文标题:让子视图不响应父视图的手势识别器
本文链接:https://www.haomeiwen.com/subject/rduuzxtx.html
网友评论