FATAL ERROR: The persistent cache of section information does not match the current configu...

FATAL ERROR: The persistent cache of section information does not match the current configuration.  You have illegally mutated the NSFetchedResultsController's fetch request, its predicate, or its sort descriptor without either disabling caching or using +deleteCacheWithName:
        NSError *error = nil;
        if (![self.fetchedResultsController performFetch:&error]) {
            // handle the error...
        }

上面加一段代码就可以了

[NSFetchedResultsController deleteCacheWithName:nil];

 

posted on 2013-06-01 17:30  小浪鼓  阅读(451)  评论(0编辑  收藏  举报

导航