如何将Core Data集成到我的现有应用程序中? [英] How to integrate Core Data to my existing application?

查看:93
本文介绍了如何将Core Data集成到我的现有应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我选择了基于窗口的通用应用程序,并开始为我的应用程序编码。



现在我有一个要求使用数据库,我发现CoreData更可取。 / p>

有没有办法将Coredata添加到我当前的项目中,如果是的话。



-Mrunal

解决方案

请参阅 Core Data Programming Guide 或文档,以获取有关开发人员的更多详细信息。本指南非常实用,还有 CoreDataBooks iPhoneCoreDataRecipes 示例代码,帮助您开始使用。 / p>

为了快速解决方案,创建一个新的导航控制器项目,并勾选核心数据复选框。然后复制您缺少的Core Data方法。您还可以使用Xcode库中提供的Core Data代码段。


I have selected window based universal application and started coding for my app.

Now i got a requirement to use database and i found that CoreData is more preferable.

Is there any way to add Coredata to my current project, if yes how?

-Mrunal

解决方案

See the Core Data Programming Guide or the documentation for more details that are open for developers only. This guide is very helpful and there are the CoreDataBooks and iPhoneCoreDataRecipes sample codes to get you started.

For a quick solution, create a new navigation controller project and tick the Core Data checkbox. Then copy the Core Data methods that you are missing. You can also use the Core Data code snippets that are available in the Xcode library.

这篇关于如何将Core Data集成到我的现有应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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