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

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Retrieving Data from Parse.com

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

GameViewController.m
#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 {

    }];
}

@end

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
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

I desperation I tried this:

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

And for some reason it worked!