views:

118

answers:

1

I'm getting the following exception is thrown under iOS 4.0 but not under 3.0 using core data. I'm populating a tableview controller with data from a core data store. Then drilling down on a row and requesting the details for that row and passing them onto a detail view.

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:

A: 

Try disabling caching. When you create the NSFetchedResultsController, pass nil as the cache name.

myFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:context sectionNameKeyPath:sectionNameKeyPath cacheName:nil];
robinjam