-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handlers inexistant for EGOImageLoadConnection #10
Comments
Can you post a snippet of the code you're using to call loadImageForURL:completion: |
I put this in EGOImageLoader:
And called it this way :
|
When you enter the loadImageForURL:completion: block, urlsToDownload is frozen by the block. You can fix this by prefixing with __block, this allows variables to be mutable in the local scope. Your NSMutableSet declaration should look like the one below. __block NSMutableSet *urlsToDownload = [NSMutableSet setWithSet:someUrls]; |
I'm not sure but I don't think is related to this. |
Issue is that the __EGOIL_USE_BLOCKS define in EGOImageLoader isnt visible to EGOImageLoadConnection Quick hack to get it to work is to simply define it the preprocessor macros in the build settings |
When using blocks, app crashes when trying to use :
- (void)loadImageForURL:(NSURL_)aURL completion:(void (^)(UIImage_ image, NSURL* imageURL, NSError* error))completion;
I fixed importing EGOImageLoader.h in EGOImageLoadConnection.h
The text was updated successfully, but these errors were encountered: