1

を使用しており、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;

しかし、画像は決して表示されません。ログで結果を確認できます。

お知らせ下さい。

4

0 に答える 0