/ Published in: iPhone
![](/img/icon_sav.png?v3)
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]; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)