REST API iOS development [closed]

2019-03-26 04:51发布

问题:

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