Created
October 1, 2014 22:54
-
-
Save AlexHedley/80552a75bfdf071f58cb to your computer and use it in GitHub Desktop.
First Element of Dictionary
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
URL: http://gdata.youtube.com/feeds/api/users/unpluggedacoustic1/uploads/?alt=json | |
JSON: | |
"media$group":{ | |
"media$thumbnail": [ | |
{ "url":"http://i.ytimg.com/vi/OKJk4QVyUTw/0.jpg","height":360,"width":480,"time":"00:01:39.500" }, | |
{ "url":"http://i.ytimg.com/vi/OKJk4QVyUTw/1.jpg","height":90,"width":120,"time":"00:00:49.750" }, | |
{ "url":"http://i.ytimg.com/vi/OKJk4QVyUTw/2.jpg","height":90,"width":120,"time":"00:01:39.500" }, | |
{ "url":"http://i.ytimg.com/vi/OKJk4QVyUTw/3.jpg","height":90,"width":120,"time":"00:02:29.250" } | |
] | |
} | |
NSDictionary *mediagroup = [entry objectForKey:@"media$group"]; | |
//NSLog(@"MediaGroup: %@", mediagroup); | |
NSDictionary *mediathumbnail = [mediagroup objectForKey:@"media$thumbnail"][0]; | |
NSString *url = [mediathumbnail objectForKey:@"url"]; | |
NSLog(@"%@", url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment