Last active
December 16, 2015 14:49
-
-
Save maruno/5451607 to your computer and use it in GitHub Desktop.
NSFetchedResultsController performFetch with affectedStores on iOS6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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