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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Face ID & Touch ID Usage in App (Swift 5, Xcode 12, Biometrics, iOS) - 2022 iOS DevelopmentSwift 4 :- How To Parse JSON Data(GET) in UITableViewCell Using JsonDecoder in iOS Hindi.Apollo GraphQL for iOS in 7 StepsUsing TestFlight in 2020Parsing JSON Just Became Super Easy in Swift 4 with DecodableAdd Google Maps to Your App (Swift 5, Xcode 12, Maps SDK) - iOS DevelopmentCustom UITableView Section Headers With Prototype Cells (iOS, Xcode 8, Swift 3)Json parsing in iOS | Swift 5Swift: YouTube - How to Load Images Async in UICollectionView (Ep 6)How to create table view in SwiftUIIntro to Unit Testing in Swift - Add a Unit Test in 6 StepsPassing Data Between ViewControllers From TextField To Label Using Segue In SwiftParse JSON in App Like a PRO (Xcode 12, Swift 5, 2020) - iOS DevelopmentUICollectionView Swift - Diffable DataSource (EASIEST TUTORIAL)Занятие 10: Работа с сетью в iOS приложениях.[PART -3] User Logout API Calling | handling Login & Logout APP Flow in Swift 5 (English).SwiftUI Basics: Dynamic Lists, HStack VStack, Images with Circle Clipped Stroke OverlaysDispatchQueue in Swift 5: iOS Concurrency & Threading (Xcode 11, 2020, swift)Core Data To Do List App for Beginners (Xcode 12, Swift 5, iOS Basics) - DevelopmentSwiftUI - Moving TextField Up When Keyboard Appears in iOS