Guest User

Untitled

a guest
Jan 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // add or update a record
  2.  
  3. SGStoredRecord *record = [SGStoredRecord recordWithID:@"recordID"
  4. point:[SGPoint pointWithLat:37.772445 lon:-122.405913]
  5. layer:@"com.simplegeo.example"];
  6.  
  7. [record setCreated:date]; // optional
  8. [record setProperties:propertiesDictionary]; // optional
  9.  
  10. [client addOrUpdateRecord:record
  11. callback:[SGCallback callbackWithSuccessBlock:
  12. ^(id response) {
  13. // addition/update confirmed
  14. } failureBlock^(NSError *error) {
  15. // addition/update failed
  16. }]];
Add Comment
Please, Sign In to add comment