Objective-C async http request

霸气de小男生 提交于 2019-12-23 07:17:10

问题


I want to create an async http request. Where to start? Can you give me some good links to start this? I want to learn it.


回答1:


-[NSURLConnection initWithRequest:delegate:]

See Using NSURLConnection from Apple.




回答2:


http://cocoawithlove.com/2008/09/cocoa-application-driven-by-http-data.html




回答3:


You can use third party SDK like ASIHTTPRequest . It is very simple to use and come with some delegate methods. This is how you can use it. It is really useful as it provide a lot of features.



来源:https://stackoverflow.com/questions/2297398/objective-c-async-http-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!