here is my data template, and I want to create an array of sections, in which case each section will contain an array of strings in this section. I considered the following questions:
and a few other messages, but the result did not work. Can someone tell me how to create an array of sections, and each section should contain its own lines. thanks in advance
EDIT I already parsed my data, the result of the log on the pastebin link is an NSDictionary, this is how I get and analyze it:
NSString*key1=[ result objectForKey:@"key" ]; NSString *s1=[@"http://" stringByAppendingString:server.text]; NSString *s2=[s1 stringByAppendingString:@"/ipad/button.php"]; NSURL *url2=[NSURL URLWithString:[s2 stringByAppendingString:[@"?key=" stringByAppendingString:key1]]]; NSData *data2=[NSData dataWithContentsOfURL:url2]; result2=[NSJSONSerialization JSONObjectWithData:data2 options:NSJSONReadingMutableContainers error:nil];
The result in pastebin is: NSLog(@"Result: %@", result2);
source share