Skip to content

Commit

Permalink
Respect the specified key for the download in the UIImageView category.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Aug 2, 2012
1 parent ef883b0 commit 170f62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UIImageView+JMImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ - (void) setImageWithURL:(NSURL *)url key:(NSString*)key placeholder:(UIImage *)

__block UIImageView *safeSelf = self;

[[JMImageCache sharedCache] imageForURL:url completionBlock:^(UIImage *image) {
[[JMImageCache sharedCache] imageForURL:url key:key completionBlock:^(UIImage *image) {
if ([url isEqual:safeSelf.jm_imageURL]) {
dispatch_async(dispatch_get_main_queue(), ^{
if(image) {
Expand Down

0 comments on commit 170f62e

Please sign in to comment.