Change SDWebImageManager to use shared image cache
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | { | 39 | { |
40 | if ((self = [super init])) | 40 | if ((self = [super init])) |
41 | { | 41 | { |
42 | - _imageCache = SDImageCache.new; | 42 | + _imageCache = [SDImageCache sharedImageCache]; |
43 | _imageDownloader = SDWebImageDownloader.new; | 43 | _imageDownloader = SDWebImageDownloader.new; |
44 | _failedURLs = NSMutableArray.new; | 44 | _failedURLs = NSMutableArray.new; |
45 | _runningOperations = NSMutableArray.new; | 45 | _runningOperations = NSMutableArray.new; |
-
Please register or login to post a comment