Search code examples
iphoneuiimageviewnsmutablearraydocuments

How do I save an NSMutableArray w/ UIImgeViews to the iPhone's document direcory


I have an NSMutableArray that holds multiple and changing amounts (that's why I am using an NSMutableArray) of UIImageView's that I want to save and also in return load when my app quits and loads. Also, how would I then, after my app loads, get the image viws out of the array


Solution

  • You should consult the Core Data Programming Guide and follow the tutorials there. It will teach you how to serialize and deserialize data structures and views.

    http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CoreData/cdProgrammingGuide.html