I have a UITableViewController that has the ability to save each row to a plist file. Currently when you press a detail disclosure indicator on the row it opens a separate UITableViewController with four static cells in two groups.
At the moment the data in these cells is just being saved in NSUserDefaults, but I’d like to be able to save them in a more robust manner (i.e. plist) and have each set of settings associated with its own row in the first table view controller.
Any help would be greatly appreciated.
Thanks,
Chris
Each of your groups can be saved as an array of dictionaries within your property list. Within each dictionary (or group), you may include various elements, least of which could be an array which would represent your ‘related’ items. This array could be a collection of simple values or even dictionaries themselves if you are working with a more complex set of data.
You may even take it a step further and use CoreData to create a nice relational object model.
Resources:
Property List Programming Guide
Core Data Programming Guide