iPhone SDK:从核心数据填充表视图 [英] iPhone SDK: Populate Table View From Core Data

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

问题描述

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



有几个项目



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



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



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


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:从核心数据填充表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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