Reputation: 45
I am using SDWebImage library for caching image for UICollectionView that is download from url,every time it send all request but download only two image. Can anyone know the reason??? Thanks in advance.
The code is:
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;
}
}];
Upvotes: 0
Views: 349
Reputation: 2252
Method name is change
used this method
- (id<SDWebImageOperation>)
downloadImageWithURL:(NSURL *)url
options:(SDWebImageOptions)options
progress:
(__strong SDWebImageDownloaderProgressBlock)progressBlock
completed:(__strong SDWebImageCompletionWithFinishedBlock)
completedBlock;
Upvotes: 1