将核心数据添加到我的iPhone应用程序

时间:2022-11-11 22:53:52

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.

我以前来过这里,要求一个可以在数据库中存储对象的映射库。有人告诉我有关核心数据框架的信息。我已经读过一些关于它的内容,我很了解它。我创建了一些“测试核心数据项目”,在那里我处理了简单的问题和模型ala Person和Group。但现在我想尝试将Core Data应用到我的一个小型iPhone应用程序中。我该怎么做呢?从NSManagedObject子类化并创建一个托管对象模型?我知道还有更多,但我还没有在谷歌苹果网站上找到任何东西。也许我在Google搜索和搜索时看错了方向。指向如何将Core Data添加到我的项目的文章/教程的链接将成为我的一天。

3 个解决方案

#1


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开发者网站上有一个教程。并且还有几个带有核心数据的示例代码。这些应该让你开始。

#2


The book, More iPhone 3 Development begins with a great tutorial demonstrating how to use Core Data. I've found it incredibly helpful.

这本书,更多的iPhone 3开发开始于一个很好的教程,演示如何使用核心数据。我发现它非常有帮助。

#3


Here is a basic CoreData screencast that, while not specifically for the iPhone gives a decent introduction to CoreData concepts.

这是一个基本的CoreData截屏视频,虽然不是专门为iPhone提供了一个体面的CoreData概念介绍。

#1


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开发者网站上有一个教程。并且还有几个带有核心数据的示例代码。这些应该让你开始。

#2


The book, More iPhone 3 Development begins with a great tutorial demonstrating how to use Core Data. I've found it incredibly helpful.

这本书,更多的iPhone 3开发开始于一个很好的教程,演示如何使用核心数据。我发现它非常有帮助。

#3


Here is a basic CoreData screencast that, while not specifically for the iPhone gives a decent introduction to CoreData concepts.

这是一个基本的CoreData截屏视频,虽然不是专门为iPhone提供了一个体面的CoreData概念介绍。