简体   繁体   中英

Best way to integrate web-services in iOS in code

previously i call the service from the same class when and where i need the data. is it a good approach to do it, let me know the best option to integrate web-services. Also using ASIHttpRequest framework is come under good coding standards?

yes ,ASIHttpRequest framework is come under good coding standards. there are some features that missing in AFNetwork.You can check below link

What major ASIHTTPRequest features is AFNetworking missing?

是的,我同意ASIHttpRequest框架是很好的,大多数人都喜欢它,但是它没有得到维护,因此我们还需要寻找其他选择。我使用AFNetworking而不是ASIHttpRequest,发现它的性能比ASIHttpRequest更快,它已经在使用NSSerialization用于解析JSON字符串,因此您不必担心JSON解析。当我们调用api时,它们会处理我们需要的所有内容,例如JSON解析,XML解析,加载程序等。您可以检查http://www.absoluteripple.com /1/post/2013/01/using-afnetworking.html https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM