Please note, this blog entry is from a previous course. You might want to check out the current one.
Download and Store Region Information
Hint #12
To get the name of a place’s region from a place_id, you will need to query Flickr again at the URLforInformationAboutPlace: (off the main queue, of course) using the FLICKR_PHOTO_PLACE_ID found in a photo dictionary and then pass the dictionary returned from that (converted from JSON) to extractRegionNameFromPlaceInformation:.
After we have stored the photo data, lets fetch and store the region data:
+ (void)loadPhotosFromFlickrArray:(NSArray *)photos // of Flickr NSDictionary intoManagedObjectContext:(NSManagedObjectContext *)context { ... [Region loadRegionNamesFromFlickrIntoManagedObjectContext:context]; }
Continue reading “cs193p – Assignment #6 Part #7”