excluir subview do UITapGestureRecognizer

Eu tenho uma subview e uma superview. A superview tem um UITapGestureRecognizer anexado a ela.

UIView *superview = [[UIView alloc] initWithFrame:CGRectMake:(0, 0, 320, 480);
UIView *subview = [[UIView alloc] initWithFrame:CGRectMake:(100, 100, 100, 100);
UIPanGestureRecognizer *recognizer = [[UIPanGestureRecognizer alloc] initWithTarget: self action: @selector(handleTap);
superview.userInteractionEnabled = YES;
subview.userInteractionEnabled = NO;
[superview addGestureRecognizer:recognizer];
[self addSubview:superview];
[superview addSubview:subview];

O reconhecedor é disparado dentro da subvisualização também, existe uma maneira de excluir o reconhecedor da subvisualização?



Eu sei que esta pergunta foi feita antes, mas não encontrei uma boa resposta para ela.

questionAnswers(3)

yourAnswerToTheQuestion