REST API iOS开发 [英] REST API iOS development

查看:129
本文介绍了REST API iOS开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在为我的应用设置RestKit API时遇到了很多麻烦。我想知道是否还有其他优秀的API来制作RESTful应用程序?我刚刚学习了很多教程和RestKit API的github目录,但我无法启动并运行。我已经看到Xcode 4在导入这个API时遇到了问题。

I'm having lots of trouble setting up the RestKit API to my app. I wonder if there is any other good API to make RESTful apps? I've just followed lots of tutorials and the github directory of the RestKit API, but I just can't get it up and running. I've seen that Xcode 4 is having problems importing this API.

这是一个老问题,现在,在4之后在iOS开发方面,我使用AFNetworking: https://github.com/AFNetworking/AFNetworking

This is an old question, Nowadays, after 4 years in iOS development I use AFNetworking: https://github.com/AFNetworking/AFNetworking

启动非常简单,可以使用cocoapods安装。

It is quite simple to start, and can be installed using cocoapods.

推荐答案

我可以建议标准的iOS类,如NSURLConnection和NSJSONSerialization。

I can suggest standard iOS classes such as NSURLConnection and NSJSONSerialization.

这是一系列帖子,解释了如何使用Blocks异步执行针对RESTful API的Http请求:
http://kerkermeister.net/series/ios-and- rest-http-connections /

Here is a series of posts that explains how to use Blocks to asynchronously perform Http requests against a RESTful API: http://kerkermeister.net/series/ios-and-rest-http-connections/

这篇关于REST API iOS开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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