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]; } }