Tag: API call in iOS

April 23, 2020

Asynchronously display data from API call in iOS

Learn how to make API call in iOS. Display the returned data asynchronously in iOS swift In this tutorial we will be using a dummy API to make API call in iOS ie. https://jsonplaceholder.typicode.com/todos/1 And the response will be coming in JSON as shown below format: Let’s start some coding now. First we will be creating the model class based on the above JSON array. […]

April 22, 2020

Get JSON array from the server and parse it in your ios application.

Learn how to parse a JSON array with the model class. In this small tutorial, I will show you how to get JSON array and parse the respective data in your iOS app. Let’s get started. For the demo, I will be using this link for the JSON array. “https://jsonplaceholder.typicode.com/posts” This JSON contains the array of post data. So let’s create our model PostModel.swift as […]