将核心数据添加到我的iPhone应用程序 [英] Adding core data to my iPhone app

查看:135
本文介绍了将核心数据添加到我的iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前一直在这里,要求一个可以在数据库中存储对象的映射库。有人告诉我关于核心数据框架。我已经阅读了一下,我了解它。
我创建了一些测试核心数据项目,其中我已经处理了简单的问题和模型ala Person和Group。但现在我想试验实现Core Data到我的一个小iPhone应用程序。我如何做到这一点?从NSManagedObject子类化并创建一个托管对象模型?
我知道有更多的,但我没有发现任何东西在谷歌og苹果网站。也许在寻找错误的方向,而谷歌和搜索。
链接到一篇文章/教程解释我如何添加Core Data到我的项目。

I have been here before, asking for a mapping library that could store objects in a database. Some one told me about the Core Data Framework. I have read a bit about it and I kindda understand it. I have created some "test Core data projects", where I have worked with simple problems and models ala Person and Group. But now I want to experiment with implementing Core Data to one of my small iPhone apps. How do I do this? Subclassing from NSManagedObject and make a Managed Object Model? I know that there is more to it, but I havent found anything on google og apples site. Maybe Im looking in wrong direction while googling and searching. A link to an article/tutorial explaining me how to add Core Data to my project would make my day.

推荐答案

在iPhone开发人员网站上有一个教程此处。还有几个示例代码以及Core Data。这些应该让你开始。

There's a tutorial on iPhone developer site here. And there are several sample codes with Core Data as well. These should get you started.

这篇关于将核心数据添加到我的iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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