修改弹窗逻辑

This commit is contained in:
NSArray
2026-03-13 17:20:45 +08:00
parent 1bfe617cab
commit 6f9f903ca1
2 changed files with 16 additions and 4 deletions
@@ -217,10 +217,10 @@
#pragma mark - 点击背景关闭
- (void)addGesture {
// UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(close)];
// tap.cancelsTouchesInView = NO;
// [self addGestureRecognizer:tap];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(close)];
tap.cancelsTouchesInView = YES;
[self addGestureRecognizer:tap];
}
- (void)close {