I am pulling data from an API and then building out my data objects with it. I want to cache this data for the future. I have been storing the string from the api in NSUserDef
Have you noticed the NSCache?
An
NSCacheobject is a mutable collection that stores key-value pairs, similar to an NSDictionary object. TheNSCacheclass provides a programmatic interface to adding and removing objects and setting eviction policies based on the total cost and number of objects in the cache...