最初のタッチから指を離すと、次のタッチが正常に認識されます。それは、最初のタッチを押し続けてから、同時に別の指で別の領域にタッチしようとしたときだけです。次に、その2番目のタッチが最初のタッチからのものとして誤って登録されます。
更新これは、最後のタッチが終了するまで呼び出されないtouchesEndedと関係があります(最後のタッチを最後に手放す前に、他に5つのタッチが終了しているかどうかは関係ありません...すべてを呼び出して終了します)最後のタッチが終了したら)
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch* touch = [touches anyObject];
NSString* filename = [listOfStuff objectAtIndex:[touch view].tag];
// do something with the filename now
}
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
ITouch* touch = [touches anyObject];
NSString* buttonPressed = [listOfStuff objectAtIndex:[touch view].tag];
// do something with this info now
}