在应用商店等中更新应用
我即将完成我的第一份申请,一切都已准备就绪。但是,我想知道以下内容,并且非常感谢一些建议和帮助。
我的应用程序有一个核心数据 sqlite3,它是一个测验应用程序,包含问题数据和包含玩家得分的 .plist。
当我需要在应用商店中更新问题数据库或应用程序时,如何保留玩家分数.plist?
我正在从模拟器中的 .txt 文件生成核心数据 sqlite3 数据,然后删除该模块。我如何在不更新代码的情况下只更新应用程序中的数据库?
有人能给我一些关于一般如何处理版本号的建议吗?如果您只更新数据库并添加更多问题,您会对此做什么?
干杯
I am about to finish my first application and have got everything working. However, i am wondering the following and would really appreciate some advice and help.
My app have a Core Data sqlite3, it is a quiz app, with the questions data and a .plist with the players score.
When i need to update the question DB or the app, in the app store, how do i preserve the player score .plist?
I am generating the core data sqlite3 data from .txt files in the simulator and then remove that module. How do i go about to only update the DB in the application without a code update?
Can someone give me some advice how you handle version numbers in general? What would you do in regards to this if you only update the DB with added questions?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您的应用程序更新时,此目录中的文件
不会被删除。这是你第一个问题的答案。
我想说,好的礼貌是从某个网页自动更新您的数据库。您应该存储本地数据库文件的版本号,并将其与远程服务器上的版本号进行比较。每当本地数据库过时时,询问用户是否想要获取新版本。
The files that are inside this directory
do not get removed when your app is updated. This is the answer to your first question.
I'd say that good manners would be to update your DB from some web page automatically. You should store the version number of your local DB file and compare it to the one on the remote server. Whenever the local DB is outdated, ask the user if he/she wants to get a new version.