public void tableView(UITableView tableView) commitEditingStyle(UITableViewCellEditingStyle editingStyle) forRowAtIndexPath(NSIndexPath indexPath) { if (editingStyle == UITableViewCellEditingStyle.UITableViewCellEditingStyleDelete) { // Delete the row from the data source _objects.removeObjectAtIndex(indexPath.row); tableView.deleteRowsAtIndexPaths(new [] { indexPath }) withRowAnimation(UITableViewRowAnimation.UITableViewRowAnimationFade); } else if (editingStyle == UITableViewCellEditingStyle.UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriabte class, insert it into the array, and add a new row to the table view } }