Permalink
Browse files

Trigger the delegate callback if the image was found in the cache

  • Loading branch information...
1 parent e57a519 commit 46faf613d188963c25700619308ec60e7faa30bc @jpm jpm committed Aug 11, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 EGOImageView/EGOImageView.m
View
5 EGOImageView/EGOImageView.m
@@ -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;
}

0 comments on commit 46faf61

Please sign in to comment.