Skip to content

Instantly share code, notes, and snippets.

@kuetsuhara
Created December 24, 2013 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuetsuhara/8111093 to your computer and use it in GitHub Desktop.
Save kuetsuhara/8111093 to your computer and use it in GitHub Desktop.
CBLModelでDelete
- (void)deleteDocument:(CBLModel *)model{
NSError *err;
BOOL ok = [model deleteDocument:&err];
// 削除実行
if (ok) {
NSLog(@"Delete Complete!");
}
else{
[self showErrorAlert:@"Couldn't delete the item"];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment