enormego / egohttprequest Goto Github PK
View Code? Open in Web Editor NEWUseful wrapper around NSURLConnection that adds many essential methods
Home Page: http://developers.enormego.com
Useful wrapper around NSURLConnection that adds many essential methods
Home Page: http://developers.enormego.com
First of all I wanna thank you for sharing this great request library-
In your EGOHTTPRequest method called "- (NSURLRequest_)buildURLRequest"
There are code like above that declare CachePolicy.
NSMutableURLRequest request = [[NSMutableURLRequest alloc] initWithURL:self.url
cachePolicy:NSURLRequestReturnCacheDataElseLoad
timeoutInterval:self.timeoutInterval];
Some times I need to specify cache policy on request when User want to update manually and blah blah blah.
Would you like to make a fix on that?
Hi guys,
Here's a little bug I found, which I think is the cause of this other issue on your EGOImageLoading library: http://github.com/enormego/EGOImageLoading/issues/4
Create a project on Xcode and add a button on Interface Builder. Link the Touch Up Inside event of the button to the "buttonClick" method below. Now paste this code in your controller:
-(IBAction) buttonClick {
EGOHTTPRequest * request = [[EGOHTTPRequest alloc] initWithURL:[NSURL URLWithString:@"http://www.google.com"] delegate:self];
[request startAsynchronous];
[request release];
}
- (void) doWhatever {
NSLog(@"OK. I did something.");
}
-(void) requestDidFinish:(EGOHTTPRequest *)aRequest {
[self performSelector:@selector(doWhatever) withObject:nil afterDelay:1];
}
Now tap the button. This will initiate an asynchronous request to Google. After the request is finished, the "requestDidFinish:" method gets called. Here we call "performSelector:withObject:afterDelay:", which should call the "doWhatever" method one second later.
But the "doWhatever" method is never called!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.