Skip to content

Instantly share code, notes, and snippets.

@breeno
Created February 27, 2013 16:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breeno/5049279 to your computer and use it in GitHub Desktop.
Save breeno/5049279 to your computer and use it in GitHub Desktop.
Determining which row was tapped from a UIGestureRecognizer added to a UITableViewCell
-(void) fooWasSingleTapped: (UITapGestureRecognizer *) recognizer
{
NSIndexPath *indexPath = [tableView indexPathForRowAtPoint: [recognizer locationInView: self.tableView]];
// do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment