Insanely basic UITableView & saving/loading data inquiry
Very sorry for the basic question but I've seen this implemented in so many (disparate) ways that I'm not certain what the accepted method might be.
All I want is an app that records a list of words. The words should be displayed in a UITableView. The user can add/delete words. The words should be stored in a local file (plist, xml, etc. - the on-disk format really doesn't matter to me).
Would someone kindly suggest a canonical application structure for this simple setup?
Thank you in advance, MP
You can have an NSMutableArray and store NSStrings in it. NSMutableArray supports inserting, adding, removing, reordering objects. You then look at the "Inserting and Deleting Rows and Sections" of the Table View Programming Guide, implement the right methods and update your NSMutableArray based model accordingly.