Solved!
You were on the right way, Mr. Jack!
What I've done is to simply create a new NSSet from the event (to ensure that initial data won't be modified during the method) and then everything worked! Here's the new code:
Code:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
NSSet *touchSet = [event allTouches]; // <--- This is the happy line!
if ([touchSet count] > 0) {
// Hi ha 1 dit a la pantalla
UITouch *t1 = [[touchSet allObjects] objectAtIndex:0];
CGPoint touchPos1 = [t1 locationInView:t1.view];
CGPoint touchPosAnt1 = [t1 previousLocationInView:t1.view];
if ([touchSet count] > 1) {
// Hi ha 2 dits a la pantalla
for(UITouch *t in [touchSet allObjects])
{
NSLog(@"Luke, I'm your father!");
}
UITouch *t2 = [[touchSet allObjects] objectAtIndex:1];
CGPoint touchPos2 = [t2 locationInView:t2.view];
}
}
}
Thanks for your time Mr. Jack!