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!

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


Taha Lukmanji
Taha Lukmanji
619 Points

What is the answer to this question? I did write the proper block but it says the answer is wrong.

I put the following code in the block.

[query getObjectInBackgroundWithId:@"1" block:^(PFObject *object, NSError *error) { NSLog("Move retrieved!"); }];

but says that my answer is wrong... anyone wants to help me out?

2 Answers

NSLog takes an NSString as an argument, which is denoted with an @ before your string.

So the NSLog will need to look like this:

NSLog(@"Move retrieved!");
Taha Lukmanji
Taha Lukmanji
619 Points

What a dumb mistake by me! Jeez. But the error message is very misleading... for the longest time I looked at the block