项目中,要在UITableViewCell中处理touchesBegan的手势,又要处理TableView中处理委托方法 didSelectRowAtIndexPath, 如果在UITableViewCell中的touchesBegan不调用[super touchesBegan:touches withEvent:event]方法,didSelectRowAtIndexPath就永远无法被调用了,因此子视图处理手势后再交由父类处理的方法可以参考如下代码:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[supertouchesBegan:touches withEvent:event];
}