实现手势以下代理方法:
#pragma mark --UIGestureRecognizerDelegate
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if ([touch.view isDescendantOfView:self.sonView]) {
return NO;
}
return YES;
}
网友评论