|
@@ -378,7 +378,7 @@ NSPopoverDelegate>
|
|
|
|
|
|
- (IBAction)buttonAction:(id)sender {
|
|
- (IBAction)buttonAction:(id)sender {
|
|
BOOL isFree = NO;
|
|
BOOL isFree = NO;
|
|
-
|
|
|
|
|
|
+ __weak typeof(self) weakSelf = self;
|
|
#if VERSION_DMG
|
|
#if VERSION_DMG
|
|
if (ActivityStatusNone == [VerificationManager manager].status) {
|
|
if (ActivityStatusNone == [VerificationManager manager].status) {
|
|
//弹出 试用弹窗UI优化-新用户试用路径 新UI 情况一 右上角按钮
|
|
//弹出 试用弹窗UI优化-新用户试用路径 新UI 情况一 右上角按钮
|
|
@@ -452,19 +452,19 @@ NSPopoverDelegate>
|
|
};
|
|
};
|
|
self.testVC.mouseEventCall = ^(BOOL mouseEnter) {
|
|
self.testVC.mouseEventCall = ^(BOOL mouseEnter) {
|
|
if (mouseEnter) {
|
|
if (mouseEnter) {
|
|
- self.stopPopOverHide = YES;
|
|
|
|
|
|
+ weakSelf.stopPopOverHide = YES;
|
|
if (ActivityStatusTrialExpire == [VerificationManager manager].status ||
|
|
if (ActivityStatusTrialExpire == [VerificationManager manager].status ||
|
|
ActivityStatusTrial == [VerificationManager manager].status) {
|
|
ActivityStatusTrial == [VerificationManager manager].status) {
|
|
- if (!self.popover.isShown) {
|
|
|
|
- [self buttonAction:self.button];
|
|
|
|
|
|
+ if (!weakSelf.popover.isShown) {
|
|
|
|
+ [weakSelf buttonAction:weakSelf.button];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- self.stopPopOverHide = NO;
|
|
|
|
- if (self.popover) {
|
|
|
|
- [self.popover close];
|
|
|
|
|
|
+ weakSelf.stopPopOverHide = NO;
|
|
|
|
+ if (weakSelf.popover) {
|
|
|
|
+ [weakSelf.popover close];
|
|
}
|
|
}
|
|
- [self.testVC removeTrackingAreaInfo];
|
|
|
|
|
|
+ [weakSelf.testVC removeTrackingAreaInfo];
|
|
}
|
|
}
|
|
};
|
|
};
|
|
NSPopover *popover = [[NSPopover alloc] init];
|
|
NSPopover *popover = [[NSPopover alloc] init];
|