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 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.....