Skip to content

Instantly share code, notes, and snippets.

@kuetsuhara kuetsuhara/gist:8111087
Last active Jan 1, 2016

Embed
What would you like to do?
CBLModelでUpdate
- (void)updateDocument:(NSIndexPath *)indexPath{
// check情報を取得
ShoppingItem *item = dataArray[indexPath.row];
// Updateを準備する
NSError *err;
item.check = !item.check;
BOOL ok = [item save:&err];
if (ok) {
[table reloadData];
}
else{
[self showErrorAlert: @"Couldn't update the item"];
}
}
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.