【发布时间】:2016-12-03 08:42:10
【问题描述】:
我确实发布了从服务器检索数据的请求。现在,我有带有某些数据的 NSDictionary。我需要在图表中显示它,所以我必须将数据转换为适当的。这是我从服务器获取的数据:
dates = (
"01.01.2016",
"01.01.2016",
"01.01.2016"
...)
closes = {
0 = (
1,
1,
1,
...)
}
我需要把它转换成这种格式:
{
"01.01.2016" = 1;
"01.01.2016" = 1;
"01.01.2016" = 1;
...
}
我该怎么做?
【问题讨论】:
-
你的真名是史蒂夫·乔布斯吗?
标签: ios objective-c nsdictionary setvalue