本文介绍了如何将NSDictionary转换为NSMutableDictionary?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个现有的NSDictionary具有:
I have an existing NSDictionary that has:
{
"charts_count" = 2;
"created_at" = "2010-04-12T16:37:32Z";
exchange = NASDAQ;
"followers_count" = 259;
id = 8404;
industry = "<null>";
"messages_count" = 1436;
ric = "GRPN.O";
sector = "<null>";
symbol = GRPN;
title = Groupon;
"updated_at" = "2011-09-05T04:17:56Z";
}
如何获取这些内容并将其放入新的NSMutableDictionary?
How can I take these contents and put it into a new NSMutableDictionary?
推荐答案
使用 -mutableCopy
。
NSDictionary *d;
NSMutableDictionary *m = [d mutableCopy];
这篇关于如何将NSDictionary转换为NSMutableDictionary?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!