Skip to content

Commit

Permalink
fix bug in AsyncImageView
Browse files Browse the repository at this point in the history
  • Loading branch information
aceisScope committed Apr 1, 2012
1 parent 37232a6 commit 521711b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion WaterFlowDisplay/FullyLoaded/AsyncImageView.m
Expand Up @@ -66,11 +66,12 @@ - (void) downloadImage:(NSString *)imageURL {
[self.request setDelegate:self];
[self.request setCompletionBlock:^(void){
self.request.delegate = nil;
self.request = nil;

NSLog(@"async image download done");

NSString * imageURL = [[self.request.originalURL absoluteString] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

self.request = nil;

dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);
dispatch_async(queue, ^{
Expand Down

0 comments on commit 521711b

Please sign in to comment.