Explorar o código

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

Pen Li %!s(int64=7) %!d(string=hai) anos
pai
achega
9eeaca4bd0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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