Simple backup infrastructure / client on iOS other than Restkit?

I have been playing with Restkit for about a day now, and its complexity drives me crazy.

I am looking for a simple, well-groomed, calm iOS client that can communicate with my web server written on rails. I only need the following: A light call to CREATE / UPDATE / DELETE with the ability to check the response code as well as the response body (I rely on the response body to set specific server-related identifiers for my objects)

Unfortunately, Resty does not support ARC so that it leaves my realms right now.

Any recommendations?

+6
source share
2 answers

I highly recommend AFNetworking . It is small, fast, well maintained and easy to use.

In addition to AFNetworking, there is another lib that was recently released called NSRails , which aims to simplify CRUD when using Rails. This is a newer library, although I personally have not used it, but it looks promising.

+5
source

Use NSURLSession and NSJSONSerialization to extract and parse your JSON, and then use the Github Mantle framework to map JSON to your ObjC classes. The mantle is much simpler than RestKit.

+2
source

Source: https://habr.com/ru/post/916836/


All Articles