Created
January 3, 2013 13:55
-
-
Save bkenny/4443623 to your computer and use it in GitHub Desktop.
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
- (void)locationReceived:(NSNotification *)notif { | |
InstaLocation *location = (InstaLocation*)[notif object]; | |
[instagramVenues addObject:location]; | |
[fsToInstagramVenues setObject:location.foursquareId forKey:location.locationId]; | |
for (MediaData *mediaData in location.images) { | |
responseCount++; | |
[feedImages addObject:mediaData]; | |
mediaData.locationName = location.name; | |
[NSSortDescriptor sortDescriptorWithKey:@"created_time" ascending:YES]; | |
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:responseCount inSection:0]; | |
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; | |
[self.tableView reloadData]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment