-3
NSURL *url = [NSURL URLWithString:[self.imageArray objectAtIndex:indexPath.row]];
NSLog(@"My URL : %@",url);
NSData *data = [NSData dataWithContentsOfURL:url];
NSLog(@"New Data : %@",data);
UIImage *tmpImage = [[UIImage alloc] initWithData:data];
cell.imageView.image = tmpImage;
當您調用該方法時,nslog會打印什麼? –
它打印空數據新數據:空,但url nslog獲取數據? –
你可以上傳你的網址給我測試嗎? –