Skip to content

Instantly share code, notes, and snippets.

@achalaggarwal
Created September 7, 2011 15:48
Show Gist options
  • Select an option

  • Save achalaggarwal/1200941 to your computer and use it in GitHub Desktop.

Select an option

Save achalaggarwal/1200941 to your computer and use it in GitHub Desktop.
GCChute.destroy()
//Synchronous Fetch
GCResponse *response = [GCChute findById:42];
GCChute *chute = [response object];
//Synchronous Request
if ([chute destroy]) {
//Destroyed
}
//Asynchronous Request
[chute destroyInBackgroundWithCompletion:^(BOOL value) {
if (value) {
//destroyed
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment