当我触摸到tableview框架之外的点时,有没有办法调用tableview委托函数-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
?
我已经尝试覆盖 tableview 的 superview-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
并更改点并让事件继续传递给 tableview 和 tableview 的子视图。只需滚动事件工作但单击事件。
这是一个演示项目