开发者

Thread Vs Async call

I wanted to know the best 开发者_如何学JAVAbetween Spawning a Thread or making a async call using NSURLConnection class.


See the documentation.

An NSURLConnection object provides support to perform the loading of a URL request. The interface for NSURLConnection is sparse, providing only the controls to start and cancel asynchronous loads of a URL request.

i.e. NSURLConnection only supports asynchronous loading of content. Even the sendSynchronousRequest:returningResponse:error: method is really just a wrapper around async loading that blocks until done.

That class reference has links to both the programming guide and numerous examples.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜