Make SDWebImageManager cache creation extensible

This commit is contained in:
Bastian Müller 2013-04-23 09:36:07 +02:00
parent 55ebe66b4c
commit 9eff469cb6
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,7 @@
{
if ((self = [super init]))
{
_imageCache = [SDImageCache sharedImageCache];
_imageCache = [self createCache];
_imageDownloader = SDWebImageDownloader.new;
_failedURLs = NSMutableArray.new;
_runningOperations = NSMutableArray.new;
@ -47,6 +47,10 @@
return self;
}
- (SDImageCache *)createCache
{
return [SDImageCache sharedImageCache];
}
- (NSString *)cacheKeyForURL:(NSURL *)url
{