I’ve mentioned using NSOperation/NSOperationQueue to speed up your apps, and posted a tutorial on the basics of using Grand Central Dispatch.
Today I came across a library, EDStorage from Andrew Zewlinski was created to eliminate the need for the large amounts of boilerplate code required to run iOS I/O code in a background thread.
EDStorage does all the NSOperation/NSOperationQueue handling for you in the background providing categories for NSData and UIImage.
Here’s an example from the ReadMe demonstrating how easy it is to persist a UIImage to the cache directory:
As you can see the library provides a very nice, clean syntax and in addition to persisting to the cache directory you can persist to the temp directory.
You can download the EDStorage categories along with an example on Github here.
A nice clean library for fast and easy handling of disk I/O.
©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
.




