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

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

Pen Li пре 7 година
родитељ
комит
9eeaca4bd0
1 измењених фајлова са 2 додато и 1 уклоњено
  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