REST API iOS development [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-04 19:02:21

问题


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.


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

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


回答1:


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

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/




回答2:


I use ASIHTTPRequest for RESTful client stuff in my apps.




回答3:


You can use rest kit api for that. You find the details about the rest kit in followings link https://github.com/RestKit/RestKit



来源:https://stackoverflow.com/questions/7108908/rest-api-ios-development

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