UILongPressGestureRecognizer *lpgr = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)];
lpgr.minimumPressDuration = 1.0;
lpgr.delegate = self;
[self.rootTableView addGestureRecognizer:lpgr];
#pragma mark - 长按 操作
-(void)handleLongPress:(UILongPressGestureRecognizer *)gestureRecognizer
{
CGPoint p = [gestureRecognizer locationInView:self.rootTableView ];
// 获取数据
NSIndexPath *indexPath = [self.rootTableView indexPathForRowAtPoint:p];
HallModel *model = self.rootDataArray[indexPath.row];
if (indexPath == nil) {
} else {// 实现方法
}
}