Can someone give me a link to this "refreshAllObjects" method in NSManagedObjectContext

[managedObjectContext refreshAllObjects]

In fact, I get a random error sometime during saving the context, and when I call [managedObjectContext refreshAllObjects]after the error, it allows me to save.
Can anyone advise me on this method.

+4
source share
1 answer

Calling refreshAllObjects calls refreshObject: mergeChanges for all objects in the context. You can see the documentation for refreshObject: mergeChanges here:

https://developer.apple.com/library/ios/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/#//apple_ref/occ/instm/NSManagedObjectContext/refreshObject:mergeChanges:

, - , . , , .

+2

All Articles