即使在应用程序更新后,仍会继续使用 NSKeyedArchiver/NSCoder 吗?
我有 NSKeyedArchiver 和 NSCoder 数据被保存(作为 .txt 文件)并且工作得很好。当我将新版本部署到 iPhone 时,文本文件仍然存在 - 换句话说,它们没有被覆盖。
但是,我想确保当 iTunes 提供的应用程序更新可用时,文本文件将持续存在。我假设是的,但只是想确定一下。
谢谢
I have NSKeyedArchiver and NSCoder data being persisted (as .txt files) and working great. When I deploy new builds to the iphone, the text files are still present - in other words, they are not being written over.
However, I want to make sure that the text files will persist when an itunes delivered update of my application is made available. I'm assuming yes, but just want to be sure.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,当 Apple 将升级交付给用户时,所有用户数据都会保留。事实上,您需要确保可以从程序退出的任何状态进行升级,这可能会使测试变得复杂。
Yes, all user data is persisted when your upgrade is delivered to a user by Apple. Indeed you need to make sure that you can upgrade from any state that the program could be exited in, which can complicate testing.