Загрузка страницы

Populate TableView using URLSession & JSONDecoder in 4 Steps

Hey! In this video, we fill out a TableView using the PokeAPI found at pokeapi.co. To do this, we use URLSession and the JSON Decoder. We also update the TableView with the data, which can be kind of tricky to time properly, so we use the DispatchQueue and booleans to control the data flow for us.

Starter Project: https://github.com/michaelmiles1/JSONDecoder/tree/starter
Finished Project: https://github.com/michaelmiles1/JSONDecoder/tree/final

Steps:
1) Analyze & Map JSON to fit your app’s needs
2) Create Structs conforming to Codable protocol
Optional) Add CodingKeys to create readable Structs
3) Call Decoder in URLSession DataTask
4) Populate UI w/ returned data

Twitter: https://twitter.com/MilesOfTweets
Instagram: https://www.instagram.com/michaelmilestv/

Видео Populate TableView using URLSession & JSONDecoder in 4 Steps канала Michael Miles
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
7 ноября 2019 г. 5:45:23
00:26:42
Яндекс.Метрика