Skip to content

Instantly share code, notes, and snippets.

@emilepetrone
Created October 11, 2011 17:36
Show Gist options
  • Save emilepetrone/1278785 to your computer and use it in GitHub Desktop.
Save emilepetrone/1278785 to your computer and use it in GitHub Desktop.
// get a specific record
[client getRecord:@"recordID"
inLayer:@"com.simplegeo.example"
callback:[SGCallback callbackWithSuccessBlock:
^(id response) {
// you've got a record!
// to create an SGStoredRecord object...
SGStoredRecord *record = [SGStoredRecord recordWithGeoJSON:response];
} failureBlock:^(NSError *error) {
// handle failure
}]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment