搜索
您的当前位置:首页正文

长按获取indexPath

来源:二三娱乐
  • (void)longPressMethod:(UILongPressGestureRecognizer *)gesture {
    CGPoint point = [gesture locationInView:self.tableView];
    NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:point];
    if (gesture.state == UIGestureRecognizerStateBegan) {
    NSLog(@"%@",indexPath);
    }
    }
Top