我想在UITableViewController中捕获触摸点的x位置。网络上最简单的解决方案是使用UITapGestureRecognizer:enter link description here。但在这种情况下,didSelectRowAtIndexPath被停止了。如何同时使用这两个事件,或者如何在singleTapGestureCaptured中获取(NSIndexPath *)indexPath参数?祝好。[编辑] 我无法回答我的问题。 解决方案是:NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:touchPoint]