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 trialRobert Sheppard
2,549 PointsCan't create outlet from label. - Different Problem than the first guy.
I'm trying to create an outlet from the label with the title "You Can't Press Me", but when I command drag from the label to the assistant editor it doesn't let me create.
To be clear when I drag their is a blue line that stretches forth from the label, but when my cursor reaches the assistant editor their is no clicking or underlying blue lines that show up in the code.
I retried doing this with the button in the master view and it still can create outlets in the controller files. I am not sure why this label is different.
Saeed Mulla othman
13,200 Pointsi'm facing the same problem
6 Answers
Saeed Mulla othman
13,200 Pointsi think i found the solution
click on Main.storyboard then click on the another view controller (PlayListDetailViewController) then from the right sidebar menu or tools click on (show the identity inspector) and put the name of the class the related to this view controller )
To be clear , See (Working With Multiple View Controllers ->Master-Detail User Interface )
hope it's work with you
agreatdaytocode
24,757 PointsTheir is a good chance that if the option to create the IBOutlet is not showing up then you are in the wrong view controller. Check to make sure you are linking this to the appropriate view controller file.
Ryan Jin
15,337 PointsIt is control - drag, not command - drag
Robert Sheppard
2,549 PointsThanks Saeed you were right!
Riz Ainuddin
2,421 PointsI tried the solutions here. I'm still stuck. ctrl+drag reaches the assistant editor with same problem.
rd. ln.
7,851 PointsI can't seem to find any answers for this that works.
Dan Chambers
6,057 PointsDan Chambers
6,057 PointsSorry dude. I've only worked with the Swift language so far.