View content of NSMutableDictionary
Asked Answered
M

2

3

How to view the content of NSMutableDictionary?

Maytime answered 6/8, 2010 at 13:55 Comment(0)
A
6

Just print contents in console:

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

To iterate through dictionary elements:

for (id key in [yourDict allKeys]){
   id obj = [yourDict objectForKey: key];
   // Do something with them
}
Audsley answered 6/8, 2010 at 14:1 Comment(0)
C
1
NSLog(@"yourMutableDictionary - %@",yourMutableDictionary);
Cragsman answered 23/7, 2013 at 11:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.