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
Harish Yerra
10,031 PointsDownloading an Image from a URL
I have been trying all day for this to work so any help is greatly appreciated. I want to download an image from NASA's APOD (which is included in their API service), and when I retrieve the image put it in the UIImageView. Note: I can't download the image because it changes daily.
This is the link to the JSON: https://api.nasa.gov/planetary/apod?concept_tags=True&api_key=DEMO_KEY
Once I go to the link there is another link inside of that one which takes me to the Apod image ( the Apod Image link changes daily, but the link to the JSON link stays the same).
After that I have to use the Apod image link and finally convert that to an image which I can use in my UIImageView.
Please help me with this, it has been driving me crazy lol! Any help would be greatly appreciated.