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)

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