1、遵守代理 UIGestureRecognizerDelegate
2、实现代理方法
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
if ([touch.view isDescendantOfView:self.pickerBgView]) {
return NO;
}
return YES;
}
1、遵守代理 UIGestureRecognizerDelegate
2、实现代理方法
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
if ([touch.view isDescendantOfView:self.pickerBgView]) {
return NO;
}
return YES;
}