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

Why would control dragging be not working?

I'm following the directions in the video but xcode isn't letting me control drag the button. I'm getting the blue line, just that nothing is happening when I release.

7 Answers

Hello Jonathan,

Make sure you are placing it in the correct file / location within the .swift file.

Can you elaborate? I'm a noob.

Sure,

When you have the assistant editor open the file name can be viewed via the drop down menu provided in xCode. You want to make sure you are on the correct file that is assigned to the view controller.

In this case I would make sure that automatic is selected.

Riz Ainuddin
Riz Ainuddin
2,421 Points

Aaron, I'm facing the same problem as well as Jonathan. Can ctrl+drag the outlet in the PlaylistDetailViewController. I tried to changed to Automatic and the entire page just went blank.

Riz Ainuddin
Riz Ainuddin
2,421 Points

I'm using Xcode v6.3

Hi All,

I am even more annoyed because when I try to control click instead of the little dragging animation the whole image moves for me. What am I doing wrong?

Riz Ainuddin
Riz Ainuddin
2,421 Points

I got it to work finally. It's either I have missed a step in the video to assigned the class identifier or by default the class was not assigned to the Artist board.

I have the same kind of issue. When I open the assistant editor it automatically goes to the masterView. I change it manually to the playlist detail but then it won't let me create the outlet. It does let me create it in the master view though... Any ideas?

never mind, that was fast I found the solution.

in the mainstoryboard carefully check your classes for each views. for some reasons I don't know mine were inverted, I changed it and now it works just fine.