- (void)longPressMethod:(UILongPressGestureRecognizer *)gesture {
CGPoint point = [gesture locationInView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:point];
if (gesture.state == UIGestureRecognizerStateBegan) {
NSLog(@"%@",indexPath);
}
}
网友评论