将核心数据添加到我的

将核心数据添加到我的

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

问题描述

我以前来过这里,要求一个可以在数据库中存储对象的映射库.有人告诉我关于核心数据框架.我已经阅读了一些关于它的内容,我有点理解它.我创建了一些测试核心数据项目",在那里我处理了简单的问题和模型 ala Person 和 Group.但现在我想尝试将 Core Data 实施到我的一个小型 iPhone 应用程序中.我该怎么做呢?从 NSManagedObject 子类化并创建托管对象模型?我知道还有更多内容,但我没有在 google og apples 网站上找到任何内容.也许我在谷歌搜索和搜索时看错了方向.一个解释我如何将 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 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 08:27