Does NSUserDefaults get erased when an app gets updated?

不羁岁月 提交于 2019-12-04 19:59:45

问题


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.


回答1:


No, it will not be erased on updating




回答2:


NSUserDefaults will not be erased during update, but it will be removed when you uninstall an app.



来源:https://stackoverflow.com/questions/8208485/does-nsuserdefaults-get-erased-when-an-app-gets-updated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!