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 triallance samaria
3,642 PointsCan't drag and drop images into xcassets
From 4:22 to 4:42 Pasan dragged and dropped images into that empty space next to the Project Navigator but it doesn't work for me.
I'm 100% in the image.xcassets folder, I tried opening the Assets folder from File > Open and got the message "Xcode does not support opening folders without a project or workspace".
While still in Xcode I went to File > Show in Finder, opened the Assets folder, pressed Cmnd + A and selected all the .PDf files and deselected the App Icon folder then tried dragging and dropping them but still nil. Then I tried individually selecting, dragging, and dropping each image and it still didn't work.
Any suggestions?
I also was unsuccessful trying this in the Build a Simple iPhone App part of the series.
1 Answer
lance samaria
3,642 PointsHmmmmm, it's a shame I had to figure out how to answer my own question, SMH. Anyway since it's not explained anywhere in this series the way to drag and drop is you once you have all the images selected in Finder (Command + A), you drag them over to that empty area next to the project area and then and if your still holding down the Command button while dragging, you simply let go of the Command button and they will be added.
Another option is after the images are selected DON'T hold down the Command button and then drag them over to that empty area and they will be added.
I searched far and wide for that answer and couldn't find it but let go of the Command button by mistake and they were added. SMH.
Gregory Weber
4,238 PointsGregory Weber
4,238 PointsThanks a lot for your help man. Yeah that definitely wasn't obvious. Needs to be added to the course.