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 Building the Master and Detail Views Adding Touch Capabilities

Can't get touch to recognize at all...

Anyone know why this isn't sending anything to console because I have no idea. This is Xcode 7.1.1 and Swift 2.0. Everything seems connected. User interaction and multiple touch are enabled.

http://tinypic.com/view.php?pic=2ro6s61&s=9

Thanks.

Great, no idea why that isn't linking. Try this one: http://loversandoutlaws.com/images/ios.png

(UI Builder is kind of blah)

2 Answers

Lennart Querter
Lennart Querter
11,533 Points

Hi,

I had the same problem that touch did not get recognized, nothing printed or moved. I redid some of my code and downloaded the teacher files and checked the differences part by part. I still do not know what i did wrong the first time, but it works now, so just rewrite or check the preview files !

Jorge Solana
Jorge Solana
6,064 Points

I experienced something like that also. I started thinking that it was probably caused by something I did wrong at some point when adding the Tap Gesture Recognizer, so I started from that point again, and then it worked!

Always check your UI elements, names and codes. There must always be something wrong if it doesn't work as intended.