This is how i am successfully using SDWebImageManager to download the images:
- (void) downloadThumbnails:(NSURL *) finalUrl
{
SDWebImageManager *manager = [SDWebImageManager sharedManager];
[manager downloadWithURL:finalUrl
options:0
progress:nil
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished) {
if (image)
{
self.thumbnailURL = [finalUrl absoluteString];
}
}];
}
- (UIImage*)thumbnail {
if (!self.thumbnailURL) return nil;
return [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:self.thumbnailURL];
}
How can i modify to have a cross fade effect? Cross Fade Effect is the one that makes the image showing transition slowly just like the TechCrunch iOS App. Thanks!
UPDATE: If i can do anything else to have cross fade effect (other than SDWebImage) in uitableview cell than you can write it in the answer.
UPDATE: I have received few answers after my last update and i am able to solve the problem partially. Using transitionWithView as in the answer below, it is working and cross fading the way i want BUT since i am using a tableivew controller that is loading more entries when it touches the bottom, it refreshes all the cells once before the new block of entries are loaded, how can i prevent this behaviour?