iPhone SDK: Populate Table View From Core Data

前端 未结 2 1811
悲&欢浪女
悲&欢浪女 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:07

    This one was helpful for me: core-data-getting-started

    This one from apple with detailed explanation + code source core data tutorial for iPhone OS

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题