美文网首页
长按获取indexPath

长按获取indexPath

作者: seventhboy | 来源:发表于2018-01-18 16:14 被阅读9次
  • (void)longPressMethod:(UILongPressGestureRecognizer *)gesture {
    CGPoint point = [gesture locationInView:self.tableView];
    NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:point];
    if (gesture.state == UIGestureRecognizerStateBegan) {
    NSLog(@"%@",indexPath);
    }
    }

相关文章

网友评论

      本文标题:长按获取indexPath

      本文链接:https://www.haomeiwen.com/subject/dlkdoxtx.html