I have a bit of code as follows:
companyLogo = nil;
[DLImageLoader loadImageFromURL:image_url
completed:^(NSError *error, NSData *imgData) {
if (error == nil) {
__block UIImage *companyLogo = [UIImage imageWithData:imgData];
} else {
// if we got error when load image
}
}];
I am trying to assign the data that comes back from the DLImageLoader block to companyLogo. How would I do this?