Skip to content

Instantly share code, notes, and snippets.

@mdobson
Last active December 18, 2015 15:49
Show Gist options
  • Save mdobson/5807377 to your computer and use it in GitHub Desktop.
Save mdobson/5807377 to your computer and use it in GitHub Desktop.
Deleting a book
NSDictionary *entity = [_objects objectAtIndex:indexPath.row];
UGClientResponse * response = [self.client removeEntity:@"book" entityID:entity[@"uuid"]];
if (response.transactionState == kUGClientResponseSuccess) {
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
}
@mdobson
Copy link
Author

mdobson commented Jun 19, 2013

Here is how we delete the book from not only our table view but from App Services storage as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment