Sfoglia il codice sorgente

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

Pen Li 7 anni fa
parent
commit
9eeaca4bd0
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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