Hi,
i am new bie in iphone development. I am facing a problem in tracking a double tap event on uitable view.
In my application there is uitable view in which I am using Uitable view cell for making as per requirment. I have written touch event in the subview subcell.m
the code is like this
- (void)touchesBegan

NSSet *)touches withEvent

UIEvent *)event
{
NSUInteger numTaps = [[touches anyObject] tapCount];
if (numTaps < 2) {
//[self performSelector:@selector(doThis) withObject:nil afterDelay: 0.5 ];
[self.nextResponder touchesEnded:touches withEvent:event];
} else {
if(numTaps == 2) {
NSLog(@"2 taps - ");
tapcounter=@"today";
[NSObject cancelPreviousPerformRequestsWithTarget:self];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(gestureDidSwipeRight) name:@"eventName" object:nil];
[self performSelector:@selector(doubleTap) withObject:nil afterDelay: 0.5 ];
}
if(numTaps == 3){
NSLog(@"3 taps - Previous");
[NSObject cancelPreviousPerformRequestsWithTarget:self];
// [self doSomethingElseCompletely];
}
}
[super touchesBegan:touches withEvent:event];
}
-(void)gestureDidSwipeRight
{
NSLog(@"notification found");
}
Its working fine and showing the notification. But I want this notification in super view that is the main tableview.
Is there any other way to track the double tap event?
Thanks in advance.