Created
October 11, 2011 17:37
-
-
Save emilepetrone/1278786 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add or update a layer | |
SGLayer *layer = [SGLayer layerWithName:@"com.simplegeo.example" | |
title:@"Example Layer" | |
description:@"Created from SimpleGeo.framework" | |
callbackURLs:nil]]; // optional list of callback URLs | |
[client addOrUpdateLayer:layer | |
callback:[SGCallback callbackWithSuccessBlock: | |
^(id response) { | |
// addition/update confirmed | |
} failureBlock:^(NSError *error) { | |
// addition/update failed | |
}]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment