This commit is contained in:
2025-11-28 16:19:06 +08:00
parent a2bb61408b
commit c897111855
3 changed files with 33 additions and 31 deletions

View File

@@ -473,9 +473,18 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
//
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if (gestureRecognizer == self.bgTap) {
// 1)
if ([touch.view isDescendantOfView:self.inputBar]) {
return NO;
}
// 2) cell KBGuideTopCell
UIView *v = touch.view;
while (v && ![v isKindOfClass:UITableViewCell.class]) {
v = v.superview;
}
if (v) { // cell
return NO;
}
}
return YES;
}