を使用しており、XML からの画像をノードNSXMLParser
として表示したいと考えています。<url>
UITableViewCell
テーブル ビューの 内で、次のcellForRowAtIndexPath
コードを使用しています。
NSURL * imageURL = [NSURL URLWithString:[[stories objectAtIndex:indexPath.row]
objectForKey:@"url"]];
NSData * imageData = [NSData dataWithContentsOfURL:imageURL];
UIImage * newsPhoto = [[UIImage alloc] initWithData:imageData];
cell.imageView.image = newsPhoto;
しかし、画像は決して表示されません。ログで結果を確認できます。
お知らせ下さい。