Skip to content
This repository

Small fix so the delegate callback is called when an image is loaded from the cache #13

Merged
merged 1 commit into from over 2 years ago

2 participants

João Prado Maia Shaun Harrison
João Prado Maia
jpm commented August 11, 2011

Commit itself is pretty simple, let me know if you need any changes.

--Joao

Shaun Harrison shnhrrsn merged commit b73b465 into from August 11, 2011
Shaun Harrison shnhrrsn closed this August 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 11, 2011
João Prado Maia Trigger the delegate callback if the image was found in the cache 46faf61
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  EGOImageView/EGOImageView.m
5  EGOImageView/EGOImageView.m
@@ -63,6 +63,11 @@ - (void)setImageURL:(NSURL *)aURL {
63 63
 	
64 64
 	if(anImage) {
65 65
 		self.image = anImage;
  66
+
  67
+		// trigger the delegate callback if the image was found in the cache
  68
+		if([self.delegate respondsToSelector:@selector(imageViewLoadedImage:)]) {
  69
+			[self.delegate imageViewLoadedImage:self];
  70
+		}
66 71
 	} else {
67 72
 		self.image = self.placeholderImage;
68 73
 	}
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.