[英]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.