Преглед изворни кода

1.修改iOS Apex Drivers Upload Manager为单例。

Pen Li пре 7 година
родитељ
комит
1d50db4ee5
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      Redant Drivers/Apex And Drivers/AppDelegate.m

+ 3 - 2
Redant Drivers/Apex And Drivers/AppDelegate.m

@@ -227,9 +227,10 @@
         [RAUploadManager configureUploadManager:^(RAUPloadManagerConfigure *configure) {
             
             configure.autoRemoveFinish = YES;
-            configure.retryCount = 10;
+            configure.retryCount = 1;
+            configure.retryTimeIntetval = 10;
         }];
-        self.uploadManager=[[RAUploadManager alloc] init];
+        self.uploadManager = [RAUploadManager sharedManager];
     }
     [UIApplication sharedApplication].applicationIconBadgeNumber = 0;