开发者

How to save data from version to version in iphone app development?

开发者 https://www.devze.com 2022-12-16 01:30 出处:网络
I\'m having a problem for my app, a Chinese-English dictionary. I\'m now adding a wordbook for it, and try to save the contents of it to a plist every time users exit the app. But now I find that as m

I'm having a problem for my app, a Chinese-English dictionary. I'm now adding a wordbook for it, and try to save the contents of it to a plist every time users exit the app. But now I find that as my app updates, all these data will get lost b开发者_如何学Cecause the path of the app is changed.

I'm now working for a company so the app will keep releasing new versions, and how can I save the data from version to version?


all these data will get lost because the path of the app is changed.

That would indicate you're writing to your application's directory structure. Don't do that.

The iPhone has a documents directory.

Document Directory discussion

0

精彩评论

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

关注公众号