PDA

View Full Version : UITableView and NSMutableArray save content




guydor
Jul 5, 2010, 08:13 AM
Hi,

I would like to save the objects and the order of them in my UITableView.
Any object that the user adds goes to a NSMutableArray.
How can I save them that I'll be able to see them even if the user quit the app?


Thanks!



bweberapps
Jul 5, 2010, 11:15 AM
Look into NSDictionary to save the items to disk, instead of using an NSMutableArray.

guydor
Jul 5, 2010, 11:48 AM
Look into NSDictionary to save the items to disk, instead of using an NSMutableArray.

I don't want to save the objects into an NSMutableArray.
The NSMutableArray is the objects

chown33
Jul 5, 2010, 12:38 PM
Read the "Archives and Serialization" guide:
http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/Archiving/Archiving.html