将 NSMutableDictionary 的内容获取到 NSMutable 数组中
如何将 NSMutableDictionary 的内容获取到 NSMutable 数组中?
我正在尝试关注,但它崩溃了
for(int i=0; i< [dict count] ; i++){
[array_listToDisplay addObject:[dict objectAtIndex:i] objectForKey:@"NAMES"];
}
请帮忙
How to get contents of NSMutableDictionary into NSMutable array?
I am trying following but its crashing
for(int i=0; i< [dict count] ; i++){
[array_listToDisplay addObject:[dict objectAtIndex:i] objectForKey:@"NAMES"];
}
Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你想要字典的键,还是字典的值?
Do you want the dictionary's keys, or the dictionary's values?
如果您尝试将字典中的所有对象添加到数组中,只需执行以下操作:
If you're trying to add all the objects in the dictionary to the array, you just do this: