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 trialVictoria M
8,730 PointsCan 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!
Nathan Bills
5,449 PointsHi 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?
Scott Baumbich
Courses Plus Student 22,129 PointsHey 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
2 Answers
agreatdaytocode
24,757 PointsHi 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.
Victoria M
8,730 PointsThank you!
Nathan Bills
5,449 PointsHey Scott Baumbich,
Thanks for those links. A lot of good information. By the way, your first link has a trailing '
' which is an ASCII carriage return and breaks your link. You may want to update that.
Scott Baumbich
Courses Plus Student 22,129 PointsNate, 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!
Scott Baumbich
Courses Plus Student 22,129 PointsNate you can also check out the last half of this Treehouse video. Pasan explains it a little better than I can.
Scott Baumbich
Courses Plus Student 22,129 PointsScott Baumbich
Courses Plus Student 22,129 PointsAs 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.