NSFetchedResultsController crashing on performFetch: when using a cache

后端 未结 12 2175
迷失自我
迷失自我 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:24

    I had a similar problem with one of my apps, when the Apple released the new iOS 4.0. Search:

    fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:[self managedObjectContext] sectionNameKeyPath:nil cacheName:nil];
    

    And set the value of the parameter cacheName to nil. It worked for me, hope it will for you. Let me know.

提交回复
热议问题