这是nsmutablearray的打印屏幕。
这2409,2410,2412不是修复密钥。它动态地来了。
{
2409 = (
{
AltSelectionPrice = "2.00";
},
{
AltSelectionPrice = "3.00";
}
);
2410 = (
{
AltSelectionPrice = "7.00";
},
{
AltSelectionPrice = "0.00";
}
);
2412 = (
{
AltSelectionPrice = "0.00";
},
{
AltSelectionPrice = "9.00";
},
{
AltSelectionPrice = "5.00";
}
);
}
提前thnx。答案 0 :(得分:1)
我目前在运行Windows的工作计算机上,因此无法发布确切的代码。但你需要做的是在数组中获取字典。可能如下:
NSDictionary* dict = [myMutableArray objectAtIndex:0];
然后迭代字典中的键:
for (id key in [dict keyEnumerator]) {
//use the key or get the object of that key using [dict objectForKey:key]
}
更新:我假设您从JSON解析器获取此数组!