我使用隨機的()做出的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」]]; –