开发者

Will information saved in standardUserDefaults go away with app update?

A ne开发者_如何学运维wbie question - I'm using [NSUserDefaults standardUserDefaults] to store user

specified preferences. While testing my app, I see that the stored preferences

disappears if I delete and re-install the app on my iphone. I'm wondering if same will

happen when an user installs a subsequent updated version of the app? Does re-installing

from xcode (without actually deleting the app from phone) simulate the app update

scenario?


I'm not sure if rebuilding with Xcode simulates an update, but user defaults are preserved when actually updating an application. Your application will continue reading their current values as usual.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜