Search code examples
requestswift2background-process

Background Process with request JSON to the server in Swift 2.0


I'm trying to create a solution for my app. I need to update information in the background process. The information is required to a server that returns a JSON string.

I found some articles, but all in Object-C, which does not help me much.

But I do not know where to start. I use synchronous or asynchronous request? And to update a list of items without using much memory of iOS? Can anyone help me? Thanks for your answers...


Solution

  • I recommend this open source:

    https://github.com/Alamofire/Alamofire

    You can do async request and Parse JSON to an object. It's very easy to use and developed by a great team. I think it will help you solve your problem.