Created
September 7, 2011 15:48
-
-
Save achalaggarwal/1200941 to your computer and use it in GitHub Desktop.
GCChute.destroy()
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
| //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