소스 검색

【PDFull】内存优化

niehaoyu 2 달 전
부모
커밋
47b43a4e3a
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

+ 8 - 8
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

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