Explorar el Código

1.修改iOS RAImage上传自动删除完成。

Pen Li hace 7 años
padre
commit
61f596d4c5
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      RA Image/RA Image/AppDelegate.m

+ 7 - 1
RA Image/RA Image/AppDelegate.m

@@ -195,8 +195,14 @@ void UncaughtExceptionHandler(NSException *exception) {
     if (!self.bLogin) {
         [self showLoginVC];
     }
+    
+    [RAUploadManager configureUploadManager:^(RAUPloadManagerConfigure *configure) {
+       
+        configure.autoRemoveFinish = YES;
+    }];
+    
     if (!self.uploadManager) {
-        self.uploadManager=[[RAUploadManager alloc] init];
+        self.uploadManager=[RAUploadManager sharedManager];
     }
 }