/ Published in: iPhone
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
[tableView setEditing:YES]; - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { int chapter = [[[book bookmarks] objectAtIndex: indexPath.row] intValue]; [book removeBookmark: chapter]; [tableView deleteRowsAtIndexPaths: [NSArray arrayWithObject: indexPath] withRowAnimation: UITableViewRowAnimationFade]; }