View NSMutableDictionary Content

How to view contents of NSMutableDictionary ?

+3
objective-c nsmutabledictionary
Aug 6 '10 at
source share
2 answers

Just print the contents in the console:

 NSLog(@"%@", [yourDict description]); 

To iterate through dictionary elements:

 for (id key in [yourDict allKeys]){ id obj = [yourDict objectForKey: key]; // Do something with them } 
+6
Aug 6 '10 at 14:01
source share
 NSLog(@"yourMutableDictionary - %@",yourMutableDictionary); 
+2
Jul 23 '13 at 11:29
source share



All Articles