问题
How to view the content of NSMutableDictionary
?
回答1:
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
}
回答2:
NSLog(@"yourMutableDictionary - %@",yourMutableDictionary);
来源:https://stackoverflow.com/questions/3424439/view-content-of-nsmutabledictionary