iPhone当应用升级到新版本时,以前的数据会发生什么 [英] iPhone What happens to previous data when app is upgraded to new version

查看:177
本文介绍了iPhone当应用升级到新版本时,以前的数据会发生什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个查询,说明当应用升级到新版本时,以前的数据会发生什么。

I have a query regarding What happens to previous data when app is upgraded to new version .

我有一个当前应用程序有本地数据库。
用户可以修改数据库。

I have a current application having a local database. The user can modify the database.

现在如果我将应用程序升级到下一个版本,会发生什么新功能?
将它完全替换数据库或我仍然可以使用它。
如果数据库仍然存在,那么新功能如何使用它如前所述,即假设它仍然在资源中?

Now If I upgrade the application to next version with some new functionality what will happen? Will it completely replace the database or I can still use it. And if the database is still there then how can new functionality use it as earlier i.e. Assuming that it is still in the resources?

请在这方面帮助。
提前感谢。

Please help in this regard. Thanks in advance.

编辑:

我试着发现,数据库。

还有一个问题。

如何通知用户升级可用于应用程序?
我需要使用推送通知还是有其他方法?

How to notify the user that an upgrade is available for the app? Do I need to use push notification or is there any other method?

推荐答案

应用数据由Bundle标识符,因为应用更新也在同一Bundle标识符上,

App data is managed by Bundle identifier, as app update is also on same Bundle identifier,

当用户更新应用时,它自动连接相同的Bundle标识符,因此数据将与旧版本相同

When user updates app, it automatically connected with same Bundle identifier, so data will be same as old version

但如果u删除(卸载)应用程序,那么它会从iPhone删除所有相关数据,然后安装新升级的应用程序将不会获取旧数据

But if u delete(uninstall) app then it will remove all relevant data from iPhone, then installing new upgraded app will not get old data

这篇关于iPhone当应用升级到新版本时,以前的数据会发生什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆