Question: I would like to do some stuff when a user swipes to the right of a UITableViewCell, so I use

```
- (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath

```

However I tried to slide to the right and this didn't get invoked, why is this? All of my UITableView delegates are invoked.

I also have this in my code:

```
 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
 {
     return YES;
 }

 // Override to support editing the table view.
 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{

}

```

All I want to do is to add a subview when a swipe happens

Answer: 
Do you have a tableView:commitEditingStyle:forRowAtIndexPath: method?

To quote Apple:

```
Note: A swipe motion across a cell does not cause the display of a Delete button 
unless the table view's data source implements the 
tableView:commitEditingStyle:forRowAtIndexPath: method.

```

And, deleting that method in my project also causes the willBeginEditing not to be called.
Set the property of table view  

```
tableView.editing = YES;

```