我使用一个 API,它为我提供来自网络的数据。数据为 JSON 格式,并存储在NSDictionary
. 像这样:
SBJSON *parser = [[SBJSON alloc] init];
dict = [[NSDictionary alloc]init];
dict = [parser objectWithString:jsonArray error:nil];
Ggb控制台结果:po dict
1262 = {
"feed_name" = name1;
"new_results" = 6;
"next_update" = "2010-02-16T15:22:11+01:00";
};
1993 = {
"feed_name" = name2;
"new_results" = 0;
"next_update" = "2010-02-16T09:09:00+01:00";
};
如何访问值“1262”和“1993”并将它们放入 aNSArray
中以在 a 中使用UITableView
?