应用程序更新时,是否删除了使用NSUserDefaults存储的数据? [英] Is the data stored using NSUserDefaults deleted when the app is updated?

查看:92
本文介绍了应用程序更新时,是否删除了使用NSUserDefaults存储的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在创建一个使用NSUserDefaults存储数据的应用。

Currently I'm creating an app that is storing data using NSUserDefaults.

因此,当我将应用程序的v1上传到应用程序商店然后为应用程序进行新的更新(v2)时,存储在NSUsedDefaults中的数据被删除了用户是否更新到新版本?

So when I upload v1 of the app to the app store and then make a new update for the app (v2) is the data stored in NSUsedDefaults deleted when the user updates to the new version?

推荐答案

使用 NSUserDefaults存储的数据不会被删除。

只有在用户删除应用时才会删除它。

It will only be deleted if the user deletes the app.

这篇关于应用程序更新时,是否删除了使用NSUserDefaults存储的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆