简体   繁体   English

更新的应用已保存了原始数据

[英]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. 我想将其与pList一起使用,但尚未找到方法。

tnx n

Just save it to a file in your "Documents" folder, or use NSUserPreferences. 只需将其保存到“文档”文件夹中的文件中,或使用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. 您保存为用户默认设置或应用程序文档目录的所有内容都将保留在更新中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 不会使用保存到核心数据的最新数据更新界面 - the interface is not updated with the latest data saved to core data swift 应用程序更新后,我放入钥匙串的值可以保存吗? - Values that I Put in Keychain Can Be Saved After app is updated? 保存的图片与原始图片不同 - The saved picture is not the same as the original NSUserDefaults将保存的数据保存到应用商店中 - NSUserDefaults saved data making it to the app store 如何知道用户是否更新了应用程序或安装了新副本? - How to know if user has updated app or installed a fresh copy? 应用更新中Core Data中保存的数据会发生什么变化 - What happens to saved data in Core Data on app update iPhone从数据库下载数据,然后检查数据库是否已更新 - iphone downloading data from a database and then checking if the database has been updated 重新启动iPhone应用程序模拟器后,已保存的数据将重置 - Saved data gets reset after restarting iphone app simulator 带有应用内购买商品的应用被更新时会发生什么? - what happens when an app that has in-app purchase products on it gets updated? 应用更新时是否删除了使用 NSUserDefaults 存储的数据? - Is the data stored using NSUserDefaults deleted when the app is updated?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM