Comments (1)
Fixed!
What you have to do to overcome this is run the "setImageURL:" on the main thread, and not directly on the requestDidFinish: method. So basically just write:
-(void) requestDidFinish:(EGOHTTPRequest *)aRequest {
NSLog(@"Request to Google finished with code %d. Now loading the image...", aRequest.responseStatusCode);
[buggyImageView performSelectorOnMainThread:@selector(setImageURL:) withObject:[NSURL URLWithString:@"http://static.gowalla.com/kinds/1739-3700293ea3dcb1478289217052a588ab-100.png"] waitUntilDone:NO];
NSLog(@"And it will load.");
}
instead of
-(void) requestDidFinish:(EGOHTTPRequest *)aRequest {
NSLog(@"Request to Google finished with code %d. Now loading the image...", aRequest.responseStatusCode);
[buggyImageView setImageURL:[NSURL URLWithString:@"http://static.gowalla.com/kinds/1739-3700293ea3dcb1478289217052a588ab-100.png"]];
NSLog(@"And it will never load.");
}
from egoimageloading.
Related Issues (20)
- handlers inexistant for EGOImageLoadConnection HOT 5
- Retina image resources? HOT 2
- Delayed Loading Behavior in UITableView HOT 7
- EGOCache.h Missing HOT 2
- Disk Fetch in background? HOT 4
- Please add semantic version tags
- crash on 404 image not found
- Undefined symbols for architecture i386 HOT 1
- EGOImageView imageView.imageURL performance HOT 15
- Unable to Cancel Image Loading in UITableViewCell on iOS 6 HOT 1
- Network operation still running when object deallocated
- How to know if the image is loaded? HOT 1
- Can't round corners with imageview.layer.cornerRadius HOT 3
- Functions in EGOImageViewDelegate not called HOT 1
- not Support for HTTPS Url image in EGOimageview
- Image loading indicator
- Handle redirection response- HOT 2
- Can not found EGOCache class HOT 1
- No EGOCache files on repository HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egoimageloading.