これは、複数のタッチが有効になっているビューの touchesBegan メソッドです。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch* touch = [touches anyObject];
if ([touches count] > 1)
NSLog(@"multi touches: %d fingers", [touches count]);
NSUInteger numTaps = [touch tapCount];
if (numTaps == 1) {
NSLog(@"single tap");
} else {
NSLog(@"multi tap: %d", numTaps);
}
}
マルチタッチをログに記録していないようです。シングルタップとダブルタップだけ。タッチのカウントを取得するのと同じくらい簡単だと思ったのは間違っていますか?