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 Playlist Browser with Swift Building the Music Library and Playlist Models Using UIImageView

Can any body explain how to import and update the images in xCode 7?

I am trying to import and update the images in to xCode 7 and the prompt are slightly different than explained in the tutorial, can someone explain to me how to do it with this program? Thank you!

As of xCode 7.0.1 (released Sept 30) After dragging and dropping images into the Assets.xcassets file, xCode will automatically default your images type as vectors if they are of the .pdf type

Additionally all images will be defaulted as universal upon importing.

Nathan Bills
Nathan Bills
5,449 Points

Hi Scott,

Do you know where or what to search for in the Xcode help to find the documentation explaining that .pdf files now default to vectors?

Hey Nathan Bills, I hope the following links will be of assistance to you. If you google search how to use vector images in iOS their are a lot of really great sources

https://stackoverflow.com/questions/25818845/how-do-vector-images-work-in-xcode-6-i-e-pdf-files

http://martiancraft.com/blog/2014/09/vector-images-xcode6/

2 Answers

Hi Victoria,

The best way to add images to Xcode 7 is to drop them into the Assets.xcassets folder. First, select the folder, then drag and drop images into panel to the right of your project navigator.

Let me know if you run into any issues.

Thank you!

Nathan Bills
Nathan Bills
5,449 Points

Hey Scott Baumbich,

Thanks for those links. A lot of good information. By the way, your first link has a trailing '&#13' which is an ASCII carriage return and breaks your link. You may want to update that.

Nate, thanks for pointing out the broken link. I've made your recommended corrections and the links are working perfectly for any other students trying to reference them. Appreciate the heads up!

Nate you can also check out the last half of this Treehouse video. Pasan explains it a little better than I can.

https://teamtreehouse.com/library/build-a-playlist-browser-with-swift/building-the-music-library-and-playlist-models/using-uiimageview