I have a code I inherited that uses NSURLConnection with initWithRequest:delegate:startImmediately:, and thus receives response data with the app delegate. It seems that the method works asynchronously, but within the main thread, because my UI gets blocked.
So my question is can I get the response to be executed on non-blocking queue, but keep using initWithRequest:delegate:startImmediately:?
Pass
NOfor thestartImmediately:argument.Create an
NSOperationQueueand callsetDelegateQueue:on the connection, passing it the queue.Call
starton the connection manually.