I'm dealing with deeply nested NSArray's and NSDictionary's and it's very time consuming to say the least. [data objectatindex:0] valueForKey:@"blah"] etc etc
Does anyone know of a nice iOS category to recursively log the structure, highlight the type and show the values?
Might be asking a bit much but you never know :)
Maybe like this?
but i can't think of any nice way of getting the output beautiful except copy & paste it into a jsonFormatter (for example)
EDIT: @Andrey Starodubtsev has the solution for XCode > 5.x below:
Hmm. Simple
outputs following result for me:
This will print in console without NSLog.
During debugging, when your breakpoint is below your dictionary, you can type in console
and you will get printed dictionary in console.
You can even cast objects to another types in console:
Maybe you can use block after iOS5, like