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 Refactoring Our Code Tapping On Our Playlists

I can't connect a Tap gesture Recognizer to an existing function.

Hello !

I followed everything, but when it comes to drag the Tap gesture Recognizer to the IBA func, I can do whatever I want but it won't let me connect to it. I had to create a different function for every Tap gesture provided, but it doesn't seem efficient to me...

I tried rebooting the computer, Xcode, I've cleaned the build folder but nothing seems to work =/ Do you guys think it's a bug ? (Got the last Xcode build 6.3.2)

Thanks !

Charlie

3 Answers

Jack Hayton
Jack Hayton
2,012 Points

You need to hold the control key as you drag. This should work, if it does not then i have no idea!

Markus Klokhøj
Markus Klokhøj
1,963 Points

I'm having the same problem. Did you figure out a solution to this issue?

Found a Solution! What you do is duplicate the tap gesture that was used on the first playlist image from the "Document outline". You duplicate one at a time and drag that tap gesture into cell 1 and so on.