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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…