Skip to content

Instantly share code, notes, and snippets.

@emilepetrone
Created October 11, 2011 17:39
Show Gist options
  • Save emilepetrone/1278796 to your computer and use it in GitHub Desktop.
Save emilepetrone/1278796 to your computer and use it in GitHub Desktop.
// get all your layers
[client getLayersWithCursor:nil // for pagination
callback:[SGCallback callbackWithSuccessBlock:
^(id response) {
// you've got layers!
// To create an array of SGLayer objects...
NSArray *layers = [NSArray arrayWithSGCollection:SGCollectionTypeLayers];
} failureBlock:^(NSError *error) {
// handle failure
}]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment