From a94b3eca7cce47eb8cc395f5c712ca524d4a6c27 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Tue, 11 Dec 2012 23:36:55 +0100 Subject: [PATCH] Fix typo (fix #246) --- SDWebImage/MKAnnotationView+WebCache.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDWebImage/MKAnnotationView+WebCache.m b/SDWebImage/MKAnnotationView+WebCache.m index f0d2c1ce..8f27a176 100644 --- a/SDWebImage/MKAnnotationView+WebCache.m +++ b/SDWebImage/MKAnnotationView+WebCache.m @@ -47,7 +47,7 @@ static char operationKey; if (url) { __weak MKAnnotationView *wself = self; - id operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, BOOL fromCache, BOOL finished) + id 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);