iPhone SDK: Populate Table View From Core Data

前端 未结 2 1833
悲&欢浪女
悲&欢浪女 2021-01-03 15:53

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 fo

2条回答
  •  太阳男子
    2021-01-03 16:26

    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

提交回复
热议问题