Converting all NSData in a large NSDictionary to Hex-NSString in Swift

35 Views Asked by At

I have multiple large dynamically created NSDictionaries which contain (among other) multiple NSData objects.

I need to "pretty-print" this dictionary. Using -description I get a quite good result except for the NSData stuff which is not completely printed as it is cropped by the method.

Is there a way (except for iterating over the whole dictionary with a nested for-loop) to convert all the NSData objects to a Hex-String representation?

0

There are 0 best solutions below