Fix typo (fix #246)

This commit is contained in:
Olivier Poitrey 2012-12-11 23:36:55 +01:00
parent d3b5fd2bd2
commit a94b3eca7c
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ static char operationKey;
if (url)
{
__weak MKAnnotationView *wself = self;
id<SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, BOOL fromCache, BOOL finished)
id<SDWebImageOperation> operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
{
__strong MKAnnotationView *sself = wself;
if (!sself) return;
@ -57,7 +57,7 @@ static char operationKey;
}
if (completedBlock && finished)
{
completedBlock(image, error, fromCache);
completedBlock(image, error, cacheType);
}
}];
objc_setAssociatedObject(self, &operationKey, operation, OBJC_ASSOCIATION_RETAIN_NONATOMIC);