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 trialDavid Fry
13,267 PointsWhat am I missing?
/* Add your code below */ UITapGestureRecognizer *triple-tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(like)]; triple-tap.numberOfTapsRequired = 3;
2 Answers
Patrick Donahue
9,523 PointsRemove the hyphen in "triple-tap". Not sure why that matters but I know hyphens in variable names are a no no. Also - it is asking you to alloc and initialize the gesture recognizer - so remove everyhting after "init" and it should work.
David Fry
13,267 Pointsah ok thanks I will give it a try.