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 trialRandell Purington
9,992 PointsI am not able to add the UILable.
in the video, he command clicks on it and it adds it. but mine doesn't do that. I have to copy and paste or type it out myself. What am i doing wrong?
3 Answers
Randell Purington
9,992 PointsI went back and reviewed it again and he says "command click on UIKit, scroll down and command click on UILable". When he does it works in the video and it imports a bunch of different things. but it doesn't work for me and when I type it out or copy and paste nothing happens except say import UIKit.UILable.
Taylor Smith
iOS Development Techdegree Graduate 14,153 Pointscan you give me the link for the video you're talking about? Sounds like he's just showing you the behind the scenes of the UIKit framework
Taylor Smith
iOS Development Techdegree Graduate 14,153 PointsRandell Dougherty... Pasan Premaratne is simply showing you the "behind the scenes" of the UIKit framework. When you CMD + Click on code in your project, you can "jump to definition" which takes you to where that code was written (and in this case, Apple wrote the UIKit framework). this is designed to give you a deeper understanding of how things are designed in Swift. If you want to actually add a label to your project, you have to drag it over from the Object Library. :)
Taylor Smith
iOS Development Techdegree Graduate 14,153 PointsTaylor Smith
iOS Development Techdegree Graduate 14,153 Pointsthe only way to added objects like a Label to your projects are either copy/paste or dragging over from the object library. Is it possible he was hitting command + C to copy and command + v to paste?