Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add or update a record
- SGStoredRecord *record = [SGStoredRecord recordWithID:@"recordID"
- point:[SGPoint pointWithLat:37.772445 lon:-122.405913]
- layer:@"com.simplegeo.example"];
- [record setCreated:date]; // optional
- [record setProperties:propertiesDictionary]; // optional
- [client addOrUpdateRecord:record
- callback:[SGCallback callbackWithSuccessBlock:
- ^(id response) {
- // addition/update confirmed
- } failureBlock^(NSError *error) {
- // addition/update failed
- }]];
Add Comment
Please, Sign In to add comment