SDWebImage 库只加载两个图像

SDWebImage library load only two image

我正在使用 SDWebImage 库为从 url 下载的 UICollectionView 缓存图像,每次它发送所有请求但只下载两个图像。谁能知道原因???提前致谢。

密码是:

SDWebImageManager *manager = [SDWebImageManager sharedManager];
[manager downloadWithURL:[NSURL URLWithString:[fileimagepath objectAtIndex:indexPath.row]]
                 options:0
                progress:nil
               completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
 {

     if (image == nil)
     {

         NSLog(@"image Not received");
     }
     else
     {
         cell.imageview.image = image;


     }
 }];

方法名称更改

用过这个方法

- (id<SDWebImageOperation>)
    downloadImageWithURL:(NSURL *)url
                 options:(SDWebImageOptions)options
                progress:
                    (__strong SDWebImageDownloaderProgressBlock)progressBlock
               completed:(__strong SDWebImageCompletionWithFinishedBlock)
    completedBlock;