У меня есть подзаголовок и супервизор. У супервизора есть привязанный к нему UITapGestureRecognizer.исключить subview из UITapGestureRecognizer
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];
Распознаватель обжигает внутри подвид, а также, есть ли способ, чтобы исключить распознаватель из подвида?
Я знаю, что этот вопрос задан раньше, но я не нашел для него хорошего ответа.
спасибо, что это сработало! –