ios - Multithread in NSURLConnection? -


when use nsurlconnection, need implement delegate api

- (void) connection:(nsurlconnection *)connection didreceivedata:(nsdata *)data 

to receive data. if need long time network return data,those staff should not stay @ main thread. should take asynchronous mode.

there must multithreading implementation behind nsurlconnection, correct ? if no,how think ?

nsurlconnection should started in main thread. please refer following link http://developer.apple.com/library/ios/#qa/qa1712/_index.html


Comments