-(
void
)longPressToDo:(UILongPressGestureRecognizer
*)gesture
{
if
(gesture.state
== UIGestureRecognizerStateBegan)
{
CGPoint
point = [gesture locationInView:self.tableView];
NSIndexPath
* indexPath = [self.tableView indexPathForRowAtPoint:point];
if
(indexPath
== nil)
return
;
//add
your code here
}
}