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 Self-Destructing Message iPhone App Using Parse.com as a Backend and Adding Users Signing Up New Users: Part 2 (PFUser)

Ribbit App question 4 of 4 help

Hi Guys, I again need your help... I successfully completed all the three tasks of this exercise before, but some how not able to understand the 4 of 4 question...

I tried typing : NSLog(@"%d",succeeded);

but i don't understand where is the succeeded parameter declared before and more over the editor is not letting me pass with this answer.

Thanks in advance for all your help.

2 Answers

Stone Preston
Stone Preston
42,016 Points

the succeeded variable is declared inside the block here as an argument of the block

  [newUser signUpInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {

you need to make sure your placing your log statement inside the blocks curly braces:

      [newUser signUpInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {

    NSLog(@"%d", succeeded);


Thanks Stone... I finally get it now.....