| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
[super touchesEnded:touches withEvent:event];
UITouch* touch = [touches anyObject];
tapLocation = [touch locationInView:self];
if([touch tapCount] == 1) {
[self performSelector:@selector(handleSingleTap) withObject:nil afterDelay:DOUBLE_TAP_DELAY];
} else if(touch.tapCount == 2) {
[(id<TapDetectingTableViewDelegate>)self.delegate tapDetectingTableViewGotDoubleTap:self];
}
}
- (void)photoSelected:(EGOImageButton*)button event:(UIEvent*)event {
UITouch* touch = [[event allTouches] anyObject];
NSIndexPath* indexPath = [self.tableView indexPathForRowAtPoint:[touch locationInView:self.tableView]];
PhotosCell* cell = (PhotosCell*)[self.tableView cellForRowAtIndexPath:indexPath];
}
- (IBAction)pushReplies:(UIButton*)button event:(UIEvent*)event {
UITouch* touch = [[event allTouches] anyObject];
NSIndexPath* indexPath = [self.tableView indexPathForRowAtPoint:[touch locationInView:self.tableView]];
}
|