//防止子视图响应
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
CGPoint p = [touch locationInView:self];
if (p.x > self.frame.size.width / 2) {
return NO;
}else{
return YES;
}
}
//防止子视图响应
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
CGPoint p = [touch locationInView:self];
if (p.x > self.frame.size.width / 2) {
return NO;
}else{
return YES;
}
}