suse
suse

Reputation: 10563

View content of NSMutableDictionary

How to view the content of NSMutableDictionary?

Upvotes: 3

Views: 6139

Answers (2)

Luda
Luda

Reputation: 7068

NSLog(@"yourMutableDictionary - %@",yourMutableDictionary);

Upvotes: 1

Vladimir
Vladimir

Reputation: 170849

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
}

Upvotes: 6

Related Questions