NSFetchedResultsController crashing on performFetch: when using a cache

后端 未结 12 2176
迷失自我
迷失自我 2020-12-23 14:05

I make use of NSFetchedResultsController to display a bunch of objects, which are sectioned using dates. On a fresh install, it all works perfectly and the objects are displ

12条回答
  •  误落风尘
    2020-12-23 14:21

    I was having the same problem.
    To fix, I put the [NSFetchedResultsController deleteCacheWithName:@"cacheName"]; before the init of resultsController. Works for me as he only goes there on the first time.

提交回复
热议问题