【发布时间】:2013-09-30 08:14:46
【问题描述】:
我想知道通常是否可以通过 URL 加载图像,该 URL 通过 JSON 解析到 UIImageView 中的 tableview 中。 p>
我在 UI 中尝试了这个,但没有成功,日志中只有两个图像。我不明白他为什么只给我看 2 个网址而不是 18 个。
NSString *bildurl = [[arrayArtikelBild objectAtIndex:indexPath.row] objectForKey:@"bild"];
NSLog(@"BildURL: %@", bildurl);
UIImage *image = [UIImage imageWithContentsOfFile:bildurl];
cell.artikelImage.image = image;
我知道我的解析代码可以正常工作,因为我已经让它解析和显示其他内容(我使用 NSJSONSerialization)。
提前致谢。
【问题讨论】:
标签: objective-c json uitableview nsjsonserialization