I'm kinda of new at ios development, I've been reading and searching but cannot find a working example or an example of how to upload a file from iphone to webserver asychronously..
I'm able to upload synchronously using
[NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
it works, but it blocks my main thread.
NSUrlConnection has this delegate (connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:)
but I've no idea how to implement it.
Can someone please point me in the right direction?
See Question&Answers more detail:os