Hi,
I know that a lot of threads are opend for this problem but yet, I haven't found a solution for this problem.
Code:
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
// We only support single touches, so anyObject retrieves just that touch from touches
UITouch *touch = [[event allTouches] anyObject];
if ([touch tapCount] == 2) {
//Do A
}
// In case of a double tap outside the placard view, update the placard's display string
else if ([touch tapCount] == 1) {
//DO B
}
}
The problem is, if i double tap, the B function is executed also.
I found this thread:
http://www.iphonedevsdk.com/forum/ip...ble-touch.html
and he said there that this is the behavior... what does he means ?
95% of all the posts use the 'tapCount'.
I've even try to use:
UIControlEventTouchDownRepeat & UIControlEventTouchUpInside, with IBActions, and always the UIControlEventTouchUpInside call first...
How do i handle ONLY double tap ?
Thanks.