Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
- (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];
[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.