iOS Dev 25: URLSession Download Task (Image Download with Progress Indicator) | Swift 5, XCode 12

117 Просмотры
In this session, we learn how to make network requests using the URL Session DownloadTask method.

We implement this by downloading an image from the internet using the downloadTask and loading that image in a UIImageView.

We also learn how to use the URLSessionDownloadDelegate to receive progress updates on the download task and update the progress bar and progress label.

Finally, we learn about some common mistakes including updating UI outside the main thread and also possible retain cycle.

Additional Resources:
Finished Code:
URLSession DataTask:
Error Handling:
Retain Cycles:

Say Hi on Social Media:
Язык программирования Swift
Комментариев нет.