Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Ribbit App code chalenge help

Hi Guys I am doing the Ribbit app code challenge 3/4 My answer is this : if( isCorrect == YES) { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Hooray" message:@"You did it!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; } I am not sure where i am going wrong, however this code works fine in xcode. The treehouse editor is giving me this message: Bummer! Make sure you use the correct title as specified in the instructions!

Thanks

5 Answers

Stone Preston
Stone Preston
42,016 Points

cant say for sure without seeing the actual challenge, but possibly try adding a ! to the end of your title:

initWithTitle:@"Hooray!"

what's the code challenge link ?

Stone Preston
Stone Preston
42,016 Points

i just tried the challenge and passed task by adding an exclamation point to your title:

UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Hooray!" message:@"You did it!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; }

yes that's also what I suspected !

Thank You Stone and Natacha for your help... I guess that was the same reason it was not letting me pass.... Thanks again