我试图在我的 tableViewCell 中解析和显示 json 内容,但是出了点问题。
JSON在这里:http ://bumpee.net/xcode/index.php
-(void)connectionDidFinishLoading:(NSURLConnection *)connection {
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:webData options:0 error:nil];
NSArray *arr = [json objectForKey:@"feed"];
for(NSDictionary *aaa in arr) {
NSDictionary *one = [aaa objectForKey:@"1"];
NSString *onePrint= [one objectForKey:@"name"];
[array addObject:onePrint];
}
[[self tableView ] reloadData];
}