Quantcast
Viewing latest article 5
Browse Latest Browse All 10

Single, Double and Triple Taps

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 latest article 5
Browse Latest Browse All 10

Trending Articles