アプリでカスタムUITableView
セルを使用しており、LazyTableImagesサンプルコードを統合してテーブルビューに画像をダウンロードしました。私は以下のコードを使用しています
- (void)appImageDidLoad:(NSIndexPath *)indexPath
{
IconDownloader *iconDownloader = [imageDownloadsInProgress objectForKey:indexPath];
if (iconDownloader != nil)
{
CustomTblViewCell *cell = (CustomTblViewCell *)[self.TblView cellForRowAtIndexPath:iconDownloader.indexPathInTableView];
// Display the newly loaded image
cell.ImgViewUser.image = iconDownloader.appRecord.m_strImage;
}
// Remove the IconDownloader from the in progress list.
// This will result in it being deallocated.
[imageDownloadsInProgress removeObjectForKey:indexPath];
[m_CtrlTblViewFacetoface reloadData ];
}
上記のコードはデータをロードしていませんがUITableView
、Customcellの代わりにセルを使用した場合、それは機能しています、何か考えはありますか?