Asynchronous NSURLConnection with NSOperation

This kind of question was asked a zillion time. Delegates are not getting called because as of iOS 4 operations are started on a secondary thread. The thread probably exits before the delegates are called that’s all.

Keep the connection on the main thread and handle the data in a background thread using GCD.

I’v wrote about all this stuff here : http://cocoaintheshell.com/2011/04/nsurlconnection-synchronous-asynchronous/

EDIT : Updated link.

Leave a Comment