iOS Library Providing Caching For NSURLRequests Allowing You To Pre-Cache Assets

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 EVURLCachethat 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.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: iOS Library Providing Caching For NSURLRequests Allowing You To Pre-Cache Assets

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *