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

Crystal Ball Motion Question

I am working on the Intercepting Motion portion of the Crystal Ball project. When I enter in

  • (BOOL) canBecomeFirstResponder { return Yes; }

I get an error response "Use of undeclared identifier 'Yes' Would you be able to lend some advice on how to remove this error message?

3 Answers

You almost got it, great job! This is how you do it (you need to capitalize the word YES entirely):

- (BOOL) canBecomeFirstResponder {
    return YES;
}

Thanks Paul!

No problem :smile: