I am writing a iOS app that contains an array of NSDictionary objects these objects can be added/removed and edited by the user. The array is stored in a plist and loaded at runtime. I am wondering what the best practice would be on when to store the data into the plist i.e. should I do it every time the array changes or only when the app is terminated or goes in the background?
Share
Doing it only when the app is terminated or goes to the background would be fine. If you have very large data, you may want to do it periodically because you only get so much time to “wrap things up” when the application is about to terminate. But will small data, it is just fine to write on terminate or when entering background.