I am developing an iOS game and I have two questions. First, I am maintaining the levels information (scores, background image, etc) into a plist file. The first time that the app is launched, I copy the plist file from the resources directory to the documents directory (I need to write the user best scores into it). Exits a best way to maintaing this information? Second, if I make an update of the app, adding new levels par example, how can I add the update new information without losing the current user scores?
Thanks for reading.
A property list seems as good a way to keep track of high scores and such as any other. If you’ve already got that working, stick with it until you have a good reason to change.
Your data file (indeed, the entire contents of the Documents directory) will be preserved when the user updates to a new version of the app.