iOS Dev 24: Networking with URL Session DataTask (GET and POST) | Swift 5, XCode 12
Описание
In this session, we learn how to make network requests using the URL Session DataTask method.
We cover a simple GET request to fetch a list of posts from an endpoint, then we go further by making a POST request to create a new post.
We also learn how to convert a Data object to a swift Any object (and vice versa) using the JSONSerialization class.
Finally, we discuss some of the potential issues that may arise while using making the request including thread violation and memory leakage.
Additional Resources:
Finished Code: https://github.com/EMacco/ios-tutorials/tree/URLSessionDataTask
Link to the server: https://jsonplaceholder.typicode.com
Error Handling: https://www.youtube.com/watch?v=sJWdYz40T6g&t=4s
Abarian: https://abarian.ng
Concurrency: https://www.youtube.com/watch?v=T0nbHBTQ5Ss&t=1s
Retain Cycles: https://www.youtube.com/watch?v=zn05jgp8VUc
Say Hi on Social Media:
LinkedIn: https://www.linkedin.com/in/emacco/
Twitter: https://twitter.com/Its_Macco
Рекомендуемые видео






![(Автор CG5/YouTube)CG5 - FREDDY (with MatPat & Black Gryph0n)[FNAF 10th Anniversary Song Animation]](/images/video/cd/75/cd7564116d0edfa3d3ac43e40b98c51f.jpg?width=640)










