Skip to content

Commit

Permalink
Fix ASImageDownloaderProtocol method that changed (#3108)
Browse files Browse the repository at this point in the history
  • Loading branch information
maicki authored Mar 1, 2017
1 parent 06b0cba commit 71ebf6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples_extra/Multiplex/Sample/ScreenNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ - (void)multiplexImageNode:(ASMultiplexImageNode *)imageNode didFinishDownloadin
#pragma mark -
#pragma mark ASImageDownloaderProtocol.

- (id)downloadImageWithURL:(NSURL *)URL
callbackQueue:(dispatch_queue_t)callbackQueue
downloadProgressBlock:(void (^)(CGFloat progress))downloadProgressBlock
completion:(void (^)(CGImageRef image, NSError *error))completion
- (nullable id)downloadImageWithURL:(NSURL *)URL
callbackQueue:(dispatch_queue_t)callbackQueue
downloadProgress:(nullable ASImageDownloaderProgress)downloadProgressBlock
completion:(ASImageDownloaderCompletion)completion
{
// if no callback queue is supplied, run on the main thread
if (callbackQueue == nil) {
Expand All @@ -146,7 +146,7 @@ - (id)downloadImageWithURL:(NSURL *)URL
}

if (completion) {
completion([[UIImage imageWithData:data] CGImage], connectionError);
completion([UIImage imageWithData:data], connectionError, nil);
}
});
};
Expand Down

0 comments on commit 71ebf6b

Please sign in to comment.