Skip to content

Instantly share code, notes, and snippets.

@kuetsuhara kuetsuhara/gist:7981525
Last active Dec 31, 2015

Embed
What would you like to do?
Couchbase LiteをCBLDodumentで削除
- (void)deleteDocument:(NSString *)documentId{
// AppDelegateを呼ぶ
NSError *err;
AppDelegate *ap = ApplicationDelegate;
CBLDocument* doc = [ap.database documentWithID:documentId];
// 削除実行
if (![doc deleteDocument:&err]) {
[self showErrorAlert:@"Couldn't delete the item"];
}
else{
NSLog(@"Delete Complete!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.