Depressed a day, rummaged all kinds of information, and finally saw a hero of the post of a sentence: "Finally to appdelegate to replace the global Nsurlcache", so the end of the black hair people turn white hair process.
self-employed solution is reference: Http://code4app.com/ios/UIWebView offline cache/53c39db6933bf07c388b49c8, This demo in IOS7 and below the operation are very smooth, moved very gratified, with iOS8 equipment, a run, on the big disappointment. So search for a variety of solutions, one day down tired. Finally see a word of a warrior's post: "Finally to appdelegate to replace the global Nsurlcache" Just think, is not
- (BOOL) Application: (uiapplication *) Application didfinishlaunchingwithoptions: (NSDictionary *) launchoptions{ customurlcache *urlcache = [[customurlcache alloc] initwithmemorycapacity:20 * 1024 * 1024 diskCapacity:200 * 1024 * 1024 diskPath:nil cachetime:0]; [customurlcache setsharedurlcache:urlcache];}
The problem was solved in such a relaxed way.
This article is from the "8830148" blog, please be sure to keep this source http://8840148.blog.51cto.com/8830148/1599913
IOS8 cache The problem of egg ache