Guest User

Untitled

a guest
Aug 16th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. iPhone Programming - complex JSON Parsing - UITableView
  2. {"1":{"1":"Ent1","done":"No"},"2":{"1":"Ent2","done":"No"}}
  3.  
  4. for (NSString *key in dict)
  5. {
  6. NSString *answer = [dict objectForKey:@"1"];
  7. NSLog(@"%@", answer);
  8. }
  9.  
  10. NSMutableArray *array = [[NSMutableArray alloc] initWithObjects: answer, nil];
  11.  
  12. NSMutableArray *array = [[NSMutableArray alloc] init];
  13.  
  14. for (NSString *key in dict)
  15. {
  16. NSString *answer = [dict objectForKey:key];
  17. [array addObject:answer];
  18. }
Add Comment
Please, Sign In to add comment