实现手势的代理方法中进行判断,这样就可以选择响应哪个事件
-(BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizershouldReceiveTouch:(UITouch *)touch
{
NSLog(@"%@",NSStringFromClass([touch.view class]));
if([NSStringFromClass([touch.viewclass])isEqualToString:@"UITableViewCellContentView"]) {
return NO;
}
return YES;
}