From 572a07416184c52d1a64b0926296fae07736a693 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 4 Jul 2018 15:19:12 +0800 Subject: [PATCH 1/2] Fix SDImageLoaderManager that only load image when loader can handle url --- SDWebImage/SDImageLoadersManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDImageLoadersManager.m b/SDWebImage/SDImageLoadersManager.m index 123113bf..c53e4247 100644 --- a/SDWebImage/SDImageLoadersManager.m +++ b/SDWebImage/SDImageLoadersManager.m @@ -88,7 +88,7 @@ NSArray> *loaders = self.loaders; UNLOCK(self.loadersLock); for (id loader in loaders.reverseObjectEnumerator) { - if ([loader respondsToSelector:@selector(loadImageWithURL:options:context:progress:completed:)]) { + if ([loader canLoadWithURL:url]) { return [loader loadImageWithURL:url options:options context:context progress:progressBlock completed:completedBlock]; } } From 6d295c2a830fd87c37329e1a055d89e3e57364c2 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 4 Jul 2018 15:49:39 +0800 Subject: [PATCH 2/2] Fix typo --- SDWebImage/SDWebImagePrefetcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImagePrefetcher.h b/SDWebImage/SDWebImagePrefetcher.h index 2f81c417..5c3bb8c0 100644 --- a/SDWebImage/SDWebImagePrefetcher.h +++ b/SDWebImage/SDWebImagePrefetcher.h @@ -14,7 +14,7 @@ @interface SDWebImagePrefetchToken : NSObject /** - * Cancel the current prefeching. + * Cancel the current prefetching. */ - (void)cancel;