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 Retrieving and Viewing Data from Parse.com Retrieving Data from Parse.com

Caleb Kleveter
Caleb Kleveter
Treehouse Moderator 37,862 Points

Retrieving Data from Parse.com

I must be missing something, but I don't see it.

#import "GameViewController.h"
#import <Parse/Parse.h>

@implementation GameViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    PFQuery *query = [PFQuery queryWithClassName:@"Move"];

    // Insert code here!
    [query getObjectInBackgroundWithId:@"1" block:nil {



Edit: Here is the warning I got: "Bummer! Compilation Error! Check your syntax! Are you using the method as specified in the instructions? Did you forget something, like a semicolon?"

1 Answer

Caleb Kleveter
Caleb Kleveter
Treehouse Moderator 37,862 Points

I desperation I tried this:

[query getObjectInBackgroundWithId:@"1" block:nil];

And for some reason it worked!