我使用随机的()做出的NSMutableArray,并在NSMutableArray中有NSURL加载图像上每一个tableview中头我怎么会从NSArray中
NSMutableArray *imagearray = [[NSMutableArray alloc]init];
for (int i = 0;i < 10; i++)
{
[imagearray addObject:[NSString stringWithFormat:@"http://flicksbank.console360.net/images/%@/default.jpg",randomArray[i][@"id"]]];
}
[imagearray setImageWithURL:[NSURL URLWithString:url1] placeholderImage:[UIImage imageNamed:@"video-bg.png"]];
你想从URL下载图像工作?如果是这样,检查这个线程http://stackoverflow.com/questions/17365135/how-to-get-image-from-server-using-nsurlconnection – UlyssesR
你的问题不清楚,你也是什么意思[imagearray setImageWithURL :[NSURL URLWithString:url1] placeholderImage:[UIImage imageNamed:@“video-bg.png”]]; –