iPhone:在应用程序的未来版本中更新核心数据模型

发布于 2024-08-24 13:20:44 字数 104 浏览 4 评论 0原文

我正在发布一个基于核心数据的应用程序,并想知道如果在稍后的更新中我需要更改模型,我需要考虑什么。

如何将设备上的现有用户数据从旧数据模型移动到新的更新模型?

谢谢

I am releasing a Core Data based app and wondered what I need to consider if, in an update later down the line, I need to change the model.

How do I move existing user data on the device from the old data model into a new updated model?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱娆 2024-08-31 13:20:44

一般来说,您现在无需考虑任何事情,但一旦更改数据模型,您就必须使用 Core Data 的模型迁移工具。阅读 核心数据模型版本控制和数据迁移编程指南

Generally, you'll have to consider nothing now but as soon as you change your data model, you'll have to employ Core Data's model migration tools. Read the Core Data Model Versioning and Data Migration Programming Guide.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文