开发者

Updated app has saved the original data

What is the trick that some apps after 开发者_开发知识库update keep original data saved before update for example scores or settings. I would like to use it with pList, but have not found how yet.

tnx


There's no trick. Anything you save to user defaults or your app's documents directory will be preserved in an update.


Just save it to a file in your "Documents" folder, or use NSUserPreferences.

Both are retained across updates.


I would expect NSUserDefaults to handle it correctly, but I could be wrong.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜