Skip to content

Instantly share code, notes, and snippets.

@dominickm
Created August 28, 2012 00:23
Show Gist options
  • Select an option

  • Save dominickm/3493768 to your computer and use it in GitHub Desktop.

Select an option

Save dominickm/3493768 to your computer and use it in GitHub Desktop.
The iOS PFQuery sample. This is Apache
- (void) someMagicalFunction {
PFQuery* query = [PFQuery queryWithClassName:@"SomeClass"];
[query whereKey:@"SomeProperty" equalTo:@"MagicString"];
[query findObjectsInBackgroundWithBlock:^(NSArray* objects, NSError* error) {
// do something with the objects
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment