Город МОСКОВСКИЙ
00:23:40

iOS Dev 24: Networking with URL Session DataTask (GET and POST) | Swift 5, XCode 12

Аватар
Реакт и TypeScript: совместная разработка
Просмотры:
24
Дата загрузки:
04.12.2023 05:23
Длительность:
00:23:40
Категория:
Технологии и интернет

Описание

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

Рекомендуемые видео