Last active
December 18, 2015 15:49
-
-
Save mdobson/5807377 to your computer and use it in GitHub Desktop.
Deleting a book
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
NSDictionary *entity = [_objects objectAtIndex:indexPath.row]; | |
UGClientResponse * response = [self.client removeEntity:@"book" entityID:entity[@"uuid"]]; | |
if (response.transactionState == kUGClientResponseSuccess) { | |
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is how we delete the book from not only our table view but from App Services storage as well.