tags:

views:

39

answers:

1

Connection delegate methods not called with background thread, Why ?

In program i have created background thread and that thread set connection delegates, by setting ObjNSURLConnection.delegate = AnotherClass, and that AnotherClass contains NSURLConnection delegate methods.

But when i debug a code i have found that NSURLConnection delegate method doesn't called. Any reason , Why they are not called ? How to solve this issue?

+2  A: 

NSURLConnection schedules notifications for events on the runloop on which it was called. You are likely neglecting to run the runloop for your background thread.

rpetrich