Reputation: 13
I have huge array with NSobjects. While storing to file iPad is getting memory issues. I want to store each object in file one by one and again read it back. Any suggestions?
Upvotes: 0
Views: 56
Reputation: 12890
Alternatively if Core Data feels a little heavy you could implement the NSCoding protocol.
Apple provide a code example here
Upvotes: 1
Reputation: 3233
I would recommend Core Data. It handles all the heavy lifting in regards to memory.
http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreData/CoreData.pdf
Upvotes: 1