Fix typo (fix #246)
This commit is contained in:
parent
d3b5fd2bd2
commit
a94b3eca7c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue