Procházet zdrojové kódy

1.修改iOS Apex Driver禁止网络请求缓存。

Pen Li před 7 roky
rodič
revize
9eeaca4bd0
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      Redant Drivers/Apex And Drivers/AppDelegate.m

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

@@ -122,7 +122,8 @@
         NSLog(@"Exception:\n%@",exceptionStr);
         
     }];
-    
+    // 禁止Disk缓存,否则会和程序实现的缓存重复
+    [[NSURLCache sharedURLCache] setDiskCapacity:0];
     
     // View