Created
July 23, 2014 20:54
-
-
Save thelastinuit/075a78c5e16d1d3ebb99 to your computer and use it in GitHub Desktop.
Double tap cell detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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