views:

22

answers:

1

Hello guys!

What do you think, what is the problem with my simulator or I don't know, with my code. Here is the code

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
  if ([touches count] == 1) {
    // code
  } else {
    // code
  }
}

And when I simulate the double tap with the Option key in simulator, the code always chooses the first part of my if statement. What's wrong with it?

A: 

The multipleTouchEnabled property needs to be set to YES before the view can accept multitouch.

KennyTM