在mu UITable视图中,我显示来自服务器的图像..为此我使用延迟加载。 我可以在屏幕上显示行时加载图像。如何增加加载的图像数量。如何在Lazy Loading上加载更多图像
像 - 首次有3个表格单元格可见,并且这些单元格上的图像会以2秒的延迟加载。如何在同一时间将下一行加载图像?
我使用下面的函数为什么要使用此代码加载图像
- (void)loadImagesForOnscreenRows
{
if ([imageArray count] > 0)
{
NSArray *visiblePaths = [tableView indexPathsForVisibleRows];
for (NSIndexPath *indexPath in visiblePaths)
{
AppRecord *appRecord = [dataArray objectAtIndex:indexPath.row];
if (!appRecord.appIcon) // avoiding the imagen download if already has an image
{
[self startIconDownload:appRecord forIndexPath:indexPath];
}
}
}
}
为什么不使用SDWebImage https://github.com/rs/SDWebImage – BhushanVU 2013-03-12 08:46:52
使用SDWebImage。它的vey快速和易于使用的图像在桌面视图 – 2013-03-12 09:18:08
我已经下载,但没有在我的xcode工作 – 2013-03-12 09:19:29