nicklockwood/AsyncImageView — pull request #40 by Fykec (2013-12-15 05:44:54+00:00)
Title: Cached image call back may have only one parameter

Hi Nick

In cached image case , the call only have one parameter, mismatch with other place, If I want use two paramters ,this place will call crash

So I update it, you can have a look

@@ -461,7 +461,13 @@ - (void)loadImageWithURL:(NSURL *)URL target:(id)target success:(SEL)success fai
if (image)
{
[self cancelLoadingImagesForTarget:self action:success];
- if (success) [target performSelectorOnMainThread:success withObject:image waitUntilDone:NO];
+ if (success)
+ {
+ dispatch_async(dispatch_get_main_queue(), ^(void)
+ {
+ objc_msgSend(target, success, image, URL);
+ });
+ }
return;
}