View content of NSMutableDictionary

走远了吗. 提交于 2019-12-06 08:04:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!