Skip to content

Commit

Permalink
Trigger the delegate callback if the image was found in the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm committed Aug 11, 2011
1 parent e57a519 commit 46faf61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EGOImageView/EGOImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ - (void)setImageURL:(NSURL *)aURL {

if(anImage) {
self.image = anImage;

// trigger the delegate callback if the image was found in the cache
if([self.delegate respondsToSelector:@selector(imageViewLoadedImage:)]) {
[self.delegate imageViewLoadedImage:self];
}
} else {
self.image = self.placeholderImage;
}
Expand Down

0 comments on commit 46faf61

Please sign in to comment.