NSFetchedResultsController not showing updates from other contexts

被刻印的时光 ゝ 提交于 2019-12-03 16:03:38

Are you getting any delegate call backs from the NSFetchedResultsController? If not then this may be a bug with the NSFetchedResultsController itself. I would recommend creating a test project that can confirm/deny this issue in isolation.

If you can duplicate it in isolation;

  1. I would love to see it :)
  2. File a radar with Apple.

After reviewing the code, the answer is to change your notification observer from NSManagedObjectContextWillSaveNotification to NSManagedObjectContextDidSaveNotification. You were sending the message just before the save occurred which was causing your issues.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!