IOS8 cache The problem of egg ache

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.