http://allseeing-i.com/ASIHTTPRequest/ is tried and true
http://restkit.org/ is only slightly less so

iOS 5 added NSJSONSerialization - 
http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html
 Which is nice.

Those bits should cover the glue. there are other options, of course.

TJ


On Jun 18, 2012, at 10:36 AM, Jim wrote:

> Probably the easiest way to communicate with your rails app from iOS is to 
> use regular http requests.  I haven't used json, but I've seen Objective C 
> libraries for parsing json, so that's an option.  It's also very simple to 
> create plists for use with [NSDictionary dictionaryWithContentsOfURL:url] 
> (keep in mind that is a synchronous call, meaning your iOS app will not 
> respond while the request is handled; Cocoa contains asynchronous commands as 
> well but that's definitely more advanced).  The ability to specify a format 
> for a request and use the appropriate view could make this simple to do in 
> your existing controllers as well, although if the flow of your data will be 
> completely different it's also easy to set up an api controller.
> 
> I've only handled HTTP 401 authentication in iOS, but that is very simple 
> with the NSURLCredential class.  A quick glance at the Devise docs indicate 
> it has support for 401 basic and digest authentication.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/rubyonrails-talk/-/gAS_LTt8ezQJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to