Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 46faf613d188963c25700619308ec60e7faa30bc 1 parent e57a519
João Prado Maia authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 EGOImageView/EGOImageView.m
5 EGOImageView/EGOImageView.m
View
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.