简体   繁体   中英

Updated app has saved the original data

What is the trick that some apps after update keep original data saved before update for example scores or settings. I would like to use it with pList, but have not found how yet.

tnx

Just save it to a file in your "Documents" folder, or use NSUserPreferences.

Both are retained across updates.

我希望NSUserDefaults能够正确处理它,但是我可能是错的。

There's no trick. Anything you save to user defaults or your app's documents directory will be preserved in an update.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM