RESTKit是ASIHTTPRequest的一个很好的替代品吗? [英] Is RESTKit a good replacement for ASIHTTPRequest?

查看:132
本文介绍了RESTKit是ASIHTTPRequest的一个很好的替代品吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 ASIHTTPRequest 已经有一段时间了,我对此非常满意。但是由于它已被弃用,我正在考虑更换它。我的第一个是使用 NSURLConnection ,但我发现 ASIHTTPRequest 实际上确实做了很多。例如,我喜欢它的队列处理。

I have been using ASIHTTPRequest for quite a while now and i quite satisfied with it. However since it has been deprecated, I am considering replacing it. My first though was to go with the NSURLConnection, but I found out that ASIHTTPRequest actually does quite a lot. For example I like its queue handling.

我正在使用的iPhone应用程序使用REST API,所以我一直在考虑 RESTKit 。是否可以在没有Core Data的情况下使用RESTKit?据我所知,我有纯数据对象,我不想使用核心数据,不管怎么说。

The iPhone application that I am working on uses a REST API, so I have been considering RESTKit. Is is possible to use RESTKit without Core Data? As it is know I have pure dataobjects and I do not want to use Core Data, not right now anyway.

ASIHTTPRequest ?

BTW我知道有类似的问题但这更具体。

BTW I know that there is a similar question but this is more specific.

推荐答案

我绝对可以推荐RestKit,我经常使用它!它为您处理常见的东西,不,您不必使用Core Data。 RestKit可以使用它,但这只是一个很好的功能。
使用RestKit的一个很好的起点是 github上的wiki

I can definitely recommend RestKit, I make use of it a lot! It handles common stuff for you and no, you don't have to use Core Data. RestKit can work with it, but that is just a nice feature. A good starting point for using RestKit is the wiki on github.

RestKit依赖于 AFNetworking 作为网络框架。如果RestKit看起来有点矫枉过正,你可能只想试试这个。

RestKit relies on AFNetworking as a networking framework. If RestKit seems to be an overkill, you may want to try only this one.

这篇关于RESTKit是ASIHTTPRequest的一个很好的替代品吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆