Ios 我正在以异步方式将图像加载到表视图单元格中';它工作得很好,但当我向下滚动时,图像会闪烁

Ios 我正在以异步方式将图像加载到表视图单元格中';它工作得很好,但当我向下滚动时,图像会闪烁,ios,tableview,cell,Ios,Tableview,Cell,我加载在表格视图单元格异步图像它的工作非常好,但当我向下滚动图像闪烁 导入“UIImageView+WebCache.h” [cell.imgProfilePic sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@“%@,[arresearchedpic objectAtIndex:indexath.row]] 占位符图像:[UIImage ImageName:@“placeholder.png”]已完成:^(

我加载在表格视图单元格异步图像它的工作非常好,但当我向下滚动图像闪烁

导入“UIImageView+WebCache.h” [cell.imgProfilePic sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@“%@,[arresearchedpic objectAtIndex:indexath.row]] 占位符图像:[UIImage ImageName:@“placeholder.png”]已完成:^(UIImage*图像,NSError*错误,SDImageCacheType cacheType,NSURL*图像URL){ NSLog(@“下载完成…”); }];

用户此代码以及静态图像闪烁是否有任何我遗漏的内容请告诉我

任何帮助都是值得的。
感谢您使用SDWebImage异步加载映像 使用此链接

下载库..在文件夹中添加文件将SDWebImage文件夹中的所有文件添加到项目中并导入此文件#导入“UIImageView+WebCache.h” 将此添加到索引路径处的cellforRow方法 [cell.imgProfileImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@“%@”,“profileImage objectAtIndex:indexath.row]]占位符图像:[UIImage imageNamed:@“unchecked.png”]选项:SDWebImageRefreshCached]

cell.imgprofileImage将是您要在其中加载数据的imageview。

的可能副本