Tuesday, 6 August 2013

How to Cache a website for ios app

How to Cache a website for ios app

How do you cache web resources for an ios app
Hi, I have an ios app which opens a website when the user taps on "how to
play" i have so many images on the website so it takes a very long time to
load.
Since it is the only website the app visits, i will like to cache the
resources somehow so that it will not have to spend so much time loading.
How to i do that?
I'm using uiwebview to browse the website.
[[NSURLCache sharedURLCache] removeAllCachedResponses];

No comments:

Post a Comment