-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
SDWebImageManager
delegate allowing fine control of manager's c…
…ache-in - `imageManager:shouldDownloadImageForURL:` let delegate to conditionaly block cache-in (fix #134) - `imageManager:transformDownloadedImage:` let delegate to transform the image prior to cache-in (fix #63, fix #284)
- Loading branch information
Olivier Poitrey
committed
Feb 16, 2013
1 parent
6f198ab
commit ebd63a8
Showing
2 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ebd63a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (transformedImage && finished)
{
[self.imageCache storeImage:transformedImage imageData:data forKey:key toDisk:cacheOnDisk];
}
wrong imageData value passed here - input parameter data was imageData for downloaded image ..its not data for transformedImage
u should pass nil here [self.imageCache storeImage:transformedImage imageData:nil forKey:key toDisk:cacheOnDisk];