Monday, December 30, 2013

http download problem How to download How to resolve network outages during the

posts by xuanliao edited 2010-09-13 18:17:08
If request = [[NSMutableURLRequest alloc] initWithURL: nurl cachePolicy: NSURLRequestUseProtocolCachePolicy timeoutInterval: 3];
If the timeout, and what function calls, this is the way how to deal with timeouts too? ? ?
The above is the connection was interrupted when
There is a network outage data was accepted, the function how to deal with? ? ?
Big Brother Trouble answer
Reply:
Not really understand what you mean, instead of processing methods are the same? .....
Statement continues, then see what your project for this to be done .....
Knock down on code
Reply:
Solve their own problems, when connected to the network interrupted calls - (void) connection: (NSURLConnection *) connection didFailWithError: (NSError *) error
Accept data during the network outage will call on the connection - (void) connectionDidFinishLoading: (NSURLConnection *) connection

Reply:
LZ you made a mistake, - (void) connectionDidFinishLoading: (NSURLConnection *) accept data during the network connection is not connected to the interrupt calls, is a function of the data requests at the completion of the call, see function names all know ..

No comments:

Post a Comment