Many apps need data to be downloaded from the web to function. This can cause issues when a user first runs the app if if they have their connection disabled.
Recently Edwin Vermeer submitted a library called EVURLCache that performs caching for all web requests that use NSURLRequest designed to help with this issue (such as those web requests performed with a library such as AFNetworking).
As the readme states this library is meant for handling those times when:
– The app has to be functional even if there is no internet connection right after the app has been downloaden from the app store. This means that the required content is included in the app.
– You do want to be a able to download new/updated content if it’s available.
With EVURLCache you can set up a pre-cache containing assets so that they don’t need to be downloaded, and there’s very little set up just initialize EVURLCache, pre-populate the pre-cache directory and you’re good to go.
You can find EVURLCache on Github here.
A nice library just in case your user turns out to be in a situation where having networking turned off could cause the app to not work when first started.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.