Created
February 3, 2013 14:45
-
-
Save n-miyo/4702058 to your computer and use it in GitHub Desktop.
How to use synchronous request with TPTimeoutURLConnection.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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