Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Photo Browser iPhone App Connecting to an API using OAuth Showing Photos in a Collection View

Dawid Cedrych
Dawid Cedrych
15,108 Points

I don't get why we use method "downloadPhotoWithURL" in PhotoCell class

I can't catch the idea of using such method since we downloaded the data in viewDidLoad. What's the purpose of downloading them one more time? Refresh method in PhotosViewController downloads the json data and parse it, all we have to do is extract image to a cell, i guess. I'd be glad if you could clarify it to me

thanks in advance