Skip to content

Instantly share code, notes, and snippets.

@thelastinuit
Created July 23, 2014 20:54
Show Gist options
  • Save thelastinuit/075a78c5e16d1d3ebb99 to your computer and use it in GitHub Desktop.
Save thelastinuit/075a78c5e16d1d3ebb99 to your computer and use it in GitHub Desktop.
Double tap cell detection
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
for (UITouch* touch in touches) {
if (touch.tapCount == 2) {
CGPoint where = [touch locationInView:self];
NSIndexPath* ip = [self indexPathForRowAtPoint:where];
NSLog(@"double clicked index path: %@", ip);
}
}
[super touchesEnded:touches withEvent:event];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment