Skip to content

Instantly share code, notes, and snippets.

@bkenny
Created January 3, 2013 13:55
Show Gist options
  • Save bkenny/4443623 to your computer and use it in GitHub Desktop.
Save bkenny/4443623 to your computer and use it in GitHub Desktop.
- (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