Created
April 30, 2013 09:04
-
-
Save kenshin03/5487531 to your computer and use it in GitHub Desktop.
Magical Records save before refetching data
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
// save before refreshing data | |
[[NSManagedObjectContext MR_defaultContext] saveWithOptions:MRSaveSynchronously completion:^(BOOL success, NSError *error) { | |
NSArray * feedItemsArray = [FeedItem findAllSortedBy:@"createdTime" ascending:NO]; | |
fetchFeedSuccess(feedItemsArray, nil); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment