iOS5的webView磁盤緩存默認是20M,可以進行修改.或者覆蓋緩存策略.
NSURLCache* testCache = [[NSURLCache alloc]initWithMemoryCapacity:1024*1024*20 diskCapacity:1024*1024*50 diskPath:@"mead.db"];
[NSURLCache setSharedURLCache:testCache];
unsigned int diskCapacity = testCache.diskCapacity;
NSLog(@"my diskCapacity=%d",diskCapacity);
[testCache setDiskCapacity:1024*1024*50];
diskCapacity = testCache.diskCapacity;
NSLog(@"after setting diskCapacity=%d",diskCapacity);
diskCapacity = testCache.currentDiskUsage;
NSLog(@" currentDiskUsage=%d",diskCapacity);
diskCapacity = testCache.currentMemoryUsage;
NSLog(@" currentMemoryUsage=%d",diskCapacity);