ios - How to display image from a google json response using photo_reference? -
i getting json response google api. there tag in json called photo_reference. how display image using tag.
nsdictionary *photodict = [[place objectforkey:@"photos"] objectatindex:0]; nsstring *photoref = [photodict objectforkey:@"photo_reference"]; nsstring *url = [nsstring stringwithformat:@"https://maps.googleapis.com/maps/api/place/photo?photoreference=%@&key=%@&sensor=false&maxwidth=320", photoref, kgoogle_api_key];
Comments
Post a Comment