UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapTapTap:)];
[self.view1 addGestureRecognizer:tapGesture];
[self.view2 addGestureRecognizer:tapGesture];
[tapGesture release];
In the above code only taps on view2
are recognized. If I comment out the third line then taps on view1
are recognized. If I’m right and you can only use a gesture recognizer once, I’m not sure if this is a bug or it just needs some more documentation.