What is the mainstream technology of Restful on iOS? What is currently the best way t

Discussion in 'iOS Programming' started by sallay, Mar 20, 2015.

  1. sallay macrumors newbie

    Joined:
    Mar 20, 2015
    #1
    I would like to realize Restful on iPad to communicate with server. I have found some open-source frameworks, like RestKit, AFNetworking which are writtern in Objective-C. But others said they are too old and writtern several years age. And now apple is targeting Swift and we should focus on some native api. So what is the best way to realize Restful on iOS now? Does apple provide native api for restful, like cocoa?
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    AFNetworking is what I use. I don't think there is any problem with it being old. Apparently there is now a Swift networking lib from the original author of AFNetworking https://github.com/Alamofire/Alamofire so I would look at that.

    Since the addition of NSURLSession to Apple's APIs it can do a lot of things that third party libs do. So you can look at using NSURLSession directly.

    There is a huge number of blogs, tutorials and Apple docs on this topic.
     

Share This Page