I have three different gestures with two different types on one view.
First is a UITapGestureRecognizer
and the two others are UILongPressGestureR
Can check the class of the UIGestureRecognizer
For example:
-(BOOL) gestureRecognizer: (UIGestureRecognize *) gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer: (UIGestureRecognizer *) otherGestureRecognizer {
if ([gestureRecognizer isMemberOfClass: [UILongPressGestureRecognizer class]]) {
//do stuff
}
//etc
}