当应用程序更新时,NSUserDefaults 是否会被删除?
在我的应用程序中,我使用 NSUserDefaults 来保存一些数据。当我在 App Store 中更新应用程序时,我对此有疑问,NSUserDefaults 中的数据将保持不变还是被删除。
In my App i am using NSUserDefaults to save some data. I have a doubt regarding this when i update the app in App Store, Will The Data in NSUserDefaults will remain same or it is removed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
NSUserDefaults 在更新期间不会被删除,但在卸载应用程序时会被删除。
NSUserDefaults will not be erased during update, but it will be removed when you uninstall an app.
不,更新时不会被删除
No, it will not be erased on updating