다음 작업을 수행 할 때 :글로벌 디스패치 대기열을 사용할 때 NSURLConnection 대리자 메서드가 호출되지 않는 이유는 무엇입니까?
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, NULL), ^{
create NSURLRequest;
create NSURLConnectionDelegate;
create NSURLConnection;
start NSURLConnection;
});
대리인의 메소드가 호출되지 얻을 않았다. 하지만 내가 할 때
dispatch_async(dispatch_get_main_queue(), ^{
create NSURLRequest;
create NSURLConnectionDelegate;
create NSURLConnection;
start NSURLConnection;
});
그들은 전화를받습니다. 왜?
UPD
이제 http://developer.apple.com/library/ios/#qa/qa1712/_index.html
내가 가있는 NSURLConnection을 만들려면 어떻게해야합니까; NSURLConnection 시작; 메인 스레드에