【发布时间】:2010-02-15 15:11:59
【问题描述】:
我使用的 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”并将它们放入NSArray,以便在UITableView 中使用?
【问题讨论】:
标签: iphone json nsdictionary