Skip to content

Instantly share code, notes, and snippets.

@fra3il

fra3il/0.m Secret

Last active January 7, 2016 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fra3il/46d527ba07be883d521f to your computer and use it in GitHub Desktop.
Save fra3il/46d527ba07be883d521f to your computer and use it in GitHub Desktop.
[WP/73] json-framework
#import "JSON.h"
SBJsonParser *jsonParser = [[SBJsonParser alloc] init];
NSDictionary *dic = (NSDictionary*)[jsonParser objectWithString:str error:NULL];
media.mediaId = [[[[dic objectForKey:@"data"] valueForKey:@"id"] objectAtIndex:i] intValue];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment