Skip to content

Instantly share code, notes, and snippets.

@n-miyo
Created February 3, 2013 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n-miyo/4702058 to your computer and use it in GitHub Desktop.
Save n-miyo/4702058 to your computer and use it in GitHub Desktop.
How to use synchronous request with TPTimeoutURLConnection.
NSURLResponse *response = nil;
NSError *error = nil;
NSData *d =
[NSURLConnection
sendSynchronousRequest:urlRequest
timeoutInterval:5.0
returningResponse:&response
error:&error];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment