Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)recurse:(NSDictionary *)dict counter: (int*) i parent:(NSString *) parent{
- for (NSString* key in [dict allKeys]) {
- id value = [dict objectForKey:key];
- NSLog(@"%@ -> %@", parent, key);
- if ([value isKindOfClass:[NSMutableDictionary class]]) {
- i++;
- NSDictionary* newDict = (NSDictionary*)value;
- [self recurse:newDict counter:i parent:key];
- i--;
- } else {
- //Do smthg
- }
- }
- }
Add Comment
Please, Sign In to add comment