NSFetchedResultsController crashing on performFetch: when using a cache

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

    NSFetchedResultsController *fetched = [[NSFetchedResultsController alloc] initWithFetchRequest:fetch managedObjectContext:self.managedObjectContext sectionNameKeyPath:@"day" cacheName:@"Events"];
    

    replace @"Events" with nil.

提交回复
热议问题