Objective c 查看NSMutableDictionary的内容

Objective c 查看NSMutableDictionary的内容,objective-c,nsmutabledictionary,Objective C,Nsmutabledictionary,如何查看易变字典的内容?只需在控制台中打印内容即可: NSLog(@"%@", [yourDict description]); 要遍历字典元素,请执行以下操作: for (id key in [yourDict allKeys]){ id obj = [yourDict objectForKey: key]; // Do something with them } NSLog(@"yourMutableDictionary - %@",yourMutableDictionary

如何查看易变字典的内容?

只需在控制台中打印内容即可:

NSLog(@"%@", [yourDict description]);
要遍历字典元素,请执行以下操作:

for (id key in [yourDict allKeys]){
   id obj = [yourDict objectForKey: key];
   // Do something with them
}
NSLog(@"yourMutableDictionary - %@",yourMutableDictionary);