Update results of NSFetchedResultsController without a new fetch

前端 未结 2 1561
误落风尘
误落风尘 2020-12-19 05:41

I\'m working on an application that holds its data in an external MySQL server, but caches it locally using Core Data for better response times. Basically, what I\'d like to

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-19 06:31

    I found out my issue was not that the objects weren't updating, but that the NSFetchedResultsController instance I had wasn't updating its section index titles properly, and I therefore couldn't see the results in my UITableView.

    Updating a managed object context from a fetched results controller does update the controller's result object set.

提交回复
热议问题