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

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