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 Using a Navigation Controller With Segues Passing Information Between Views

Robert Sheppard
Robert Sheppard
2,549 Points

Can'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.

Sorry dude. I've only worked with the Swift language so far.

6 Answers

Saeed Mulla othman
Saeed Mulla othman
13,200 Points

i 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

Their 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
Ryan Jin
15,337 Points

It is control - drag, not command - drag

Robert Sheppard
Robert Sheppard
2,549 Points

Thanks Saeed you were right!

Riz Ainuddin
Riz Ainuddin
2,421 Points

I tried the solutions here. I'm still stuck. ctrl+drag reaches the assistant editor with same problem.

rd. ln.
rd. ln.
7,851 Points

I can't seem to find any answers for this that works.