From the course: iOS Development: Threading and Grand Central Dispatch

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Load images in a collection view

Challenge: Load images in a collection view

From the course: iOS Development: Threading and Grand Central Dispatch

Start my 1-month free trial

Challenge: Load images in a collection view

(soft music) - [Instructor] It's time to put your asynchronous programming skills to the test. In this app, we are downloading images from the Unsplash API onto a table view and displaying it alongside with the other name, you're going to need an access key from the Unsplash website. So go ahead and get that and input it, here is a string. When you tried to scroll through our table view, you'll notice that the scrolling is low and choppy. And especially if you're scrolling from the bottom up. And this is because the app is downloading the images to display them again, yet they had been downloaded in the beginning. When you were scrolling from the top to the bottom. In this challenge, we need to cache our images as well as make sure that the UI, is being updated on the main thread so that the scrolling is smooth and not chopping.

Contents