我有一个名为someArray
. 我想访问NSArray
. 我正在尝试使用以下方法访问它,但没有任何运气。我该如何正确地做到这一点?
cell.textLabel.text = [[someArray objectAtIndex:indexPath.row] objectForKey:@"name"];
some array {
haserror = 0;
headers = {
code = 0;
haserror = 0;
nodeid = "fe1.aaaaaa.2.undefined";
time = 16;
};
results = (
{
coords = (
"44.916667",
"8.616667"
);
id = 2;
key = alessandria;
name = Alessandria;
state = Piemonte;
zip = 1512;
},
{
coords = (
"43.616944",
"13.516667"
);
id = 3;
key = ancona;
name = Ancona;
state = Marche;
zip = 601;
},
}