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)

James Carney
James Carney
16,255 Points

This challenge stumped me...

Here is the question: For now, inside the block, simply log the 'succeeded' parameter using NSLog. BOOL values are really just int values (0 or 1), so you can use the int format specifier: %d. I figured out I need:

NSLog(@"%d", myVariable):

But I am really stumped. I watched the previous videos and looked up and down parse.com. Not sure where to go from here with it.

Sorry if this seems like an easier question. My biggest problem with most of these challenges is overcoming the wording in the question. I always misread it.

2 Answers

%d is correct, but instead of myVariable, the name of the boolean you are trying to log is succeeded or whatever you named it in the block.

James Carney
James Carney
16,255 Points

Thanks for you help guys!

Scott Evans
Scott Evans
4,236 Points

Give NSLog(@"%@", myVariable); and see what that outputs. Its possible the variable could be being assigned wrong