Skip to content

Instantly share code, notes, and snippets.

@maruno
Last active December 16, 2015 14:49
Show Gist options
  • Save maruno/5451607 to your computer and use it in GitHub Desktop.
Save maruno/5451607 to your computer and use it in GitHub Desktop.
NSFetchedResultsController performFetch with affectedStores on iOS6
if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0")) {
//HACK iOS 6 does not retain correctly, causing a refcount of -1, creating a NSZombie
CFBridgingRetain(self.fetchedResultsController.fetchRequest.affectedStores);
}
[self.fetchedResultsController performFetch:&error];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment