Created
October 24, 2012 07:31
-
-
Save gonzalezreal/3944561 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| - (void)importTweets:(NSArray *)tweets | |
| { | |
| for (NSDictionary *tweetDictionary in tweets) { | |
| [TGRTweet importFromDictionary:tweetDictionary inManagedObjectContext:self.managedObjectContext]; | |
| } | |
| NSError *error = nil; | |
| BOOL succeeded = [self.managedObjectContext save:&error]; | |
| if (!succeeded) { | |
| NSLog(@"Error saving timeline: %@", [error localizedDescription]); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment