Mysql
 sql >> Database >  >> RDS >> Mysql

Come analizzare gli array nell'array PHP->JSON->XCODE

Penso che tu debba solo avere un riferimento a due livelli (ultima riga sotto) a meno che non stia fraintendendo qualcosa:

NSString *response = [[NSString alloc] initWithContentsOfURL:yourSourceUrl];
const char *convert = [response UTF8String];
NSString *responseString = [NSString stringWithUTF8String:convert];
NSArray *ads = [responseString JSONValue];
NSLog(@"%@",[[ads objectAtIndex:0] objectAtIndex:1]); //Hyr ut i natt