NSFetchedResultsController

NSFetchedResultsController

本文介绍了iPhone SDK:从核心数据填充表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个教程,显示如何从核心数据填充UITableView,允许添加记录和删除它们。



有几个项目



任何人看过的教程在这里? 它需要一个获取请求,并设计为直接在您的 UITableViewDataSource 中使用,做了大量的工作。



支持处理插入,删除和更新,但需要更多的工作。 Jeff LaMarche有一些关于 NSFetchedResultsController 的文章。




I am looking for a tutorial that shows how to populate a UITableView from core data, allowing to add records and delete them.

There are a few projects that I have found, but they are hard to follow without the steps to build them.

Anyone seen tutorials on this? Or better yet, videos?

解决方案

Have you looked at NSFetchedResultsController? It takes a fetch request and is designed to be used directly within your UITableViewDataSource, doing much of the heavy lifting.

Handling inserts, deletes and updates is supported but requires a bit more work. Jeff LaMarche has some great articles on NSFetchedResultsController.

http://iphonedevelopment.blogspot.com/search/label/Core%20Data

这篇关于iPhone SDK:从核心数据填充表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 07:20