When I do the following:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, NULL), ^{
create NSURLRequest;
create NSURLConnectionDelegate;
create NSURLConnection;
start NSURLConnection;
});
The delegate's methods never get called. But when I do
dispatch_async(dispatch_get_main_queue(), ^{
create NSURLRequest;
create NSURLConnectionDelegate;
create NSURLConnection;
start NSURLConnection;
});
They do get called. Why?
UPD
http://developer.apple.com/library/ios/#qa/qa1712/_index.html
Now I do create NSURLConnection; start NSURLConnection; on the main thread.