[英]Adding core data to my iPhone app
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.
我创建了一些“测试核心数据项目”,在那里我处理了简单的问题和模型ala Person和Group。 But now I want to experiment with implementing Core Data to one of my small iPhone apps.
但现在我想尝试将Core Data应用到我的一个小型iPhone应用程序中。 How do I do this?
我该怎么做呢? Subclassing from NSManagedObject and make a Managed Object Model?
从NSManagedObject子类化并创建一个托管对象模型? 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.
也许我在Google搜索和搜索时看错了方向。 A link to an article/tutorial explaining me how to add Core Data to my project would make my day.
指向如何将Core Data添加到我的项目的文章/教程的链接将成为我的一天。
There's a tutorial on iPhone developer site here . 有一个关于iPhone开发者网站的教程在这里 。 And there are several sample codes with Core Data as well.
并且还有几个带有核心数据的示例代码 。 These should get you started.
这些应该让你开始。
The book, More iPhone 3 Development begins with a great tutorial demonstrating how to use Core Data. 这本书, 更多的iPhone 3开发开始于一个很好的教程,演示如何使用核心数据。 I've found it incredibly helpful.
我发现它非常有帮助。
这是一个基本的CoreData截屏视频 ,虽然不是专门为iPhone提供了一个体面的CoreData概念介绍。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.