Quantcast
Channel: zdima.net » John
Viewing all articles
Browse latest Browse all 10

Single, Double and Triple Taps

$
0
0

If you need to tinker with the threshold (time between clicks) when working with single, double and triple taps on the touch screen, one approach for this follows. What follows is a short example that demonstrates how you can manage the delay between taps.

-(void)oneTap
{
NSLog(@”Single tap”);
}

-(void)twoTaps
{
NSLog(@”Double tap”);
}

-(void)threeTaps
{
NSLog(@”Triple tap”);
}

– (void)touchesBegan:(NSSet *)touches […]


Viewing all articles
Browse latest Browse all 10

Trending Articles