I have an app that I want to use to store different people’s data. For example, say you add person A, B, C to a table; then when you tap on them you can add more of their data – phone number, address etc.
I want to be able to store the info for every one of those entries in order to be able to display them when the app starts next time (and when I switch between the different table entries). Currently if I add data to a person’s details, if I switch to another person, the data for the first one goes away as I’m not storing in any way.
I don’t want to use Core Data as it’s only for a low number of entries (about a dozen or so). Can anyone please give me an idea of how I could store each entry so as to pull it at run time (or whenever I tap on an entry that I’ve added details for already)?
Store each entry in an
NSArrayofNSDictionarys, which, in turn, can be stored inNSUserDefaults.