Просмотр исходного кода

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

Pen Li 7 лет назад
Родитель
Сommit
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