iCloud and Core Data work great. With the exception of...
When you start the first application (there is existing iCloud data), NSFetchedResultsControllers are not updated as the data is received. NSFetchedResultsController representatives are simply not called. When the application is terminated and resumed, all data is there, as it should be.
The kernel data code is the same as a great tutorial here . I have a feeling that this code is not mistaken, since I used it for another application and did not have this problem.
Additional information: The context of my managed entity is initialized by the main concurrency queue. The only thing that I managed to find out is that I can catch the source data as it appears - the function below is called a few seconds after the application starts. However, despite the data, the existing controllers of the obtained results do not seem to be updated accordingly (but their creation again shows the data).
- (void)storesWillChange:(NSNotification *)notification { NSManagedObjectContext *context = self.managedObjectContext; [context performBlockAndWait:^{ NSError *error; if ([context hasChanges]) { BOOL success = [context save:&error]; if (!success && error) {
So:. What can I do to start figuring out why NSFetchedResultsControllers are not updated, how should they be?
ios objective-c iphone ipad core-data
Jordan smith
source share