title: How to detect edit mode on iPhone UITableView
body: <p>For my iPhone app, I have an editable (for delete) table view.  I'd like to be able to detect that the user has clicked the "Edit" button.  See this image:  <a href="http://grab.by/It0" rel="noreferrer">http://grab.by/It0</a></p>
  
  <p>From the docs, it looked like if I implemented :</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath
  </code></pre>
  
  <p>then I could detect it (although from the name of the method, I wouldn't think that).  This proved not to work. </p>
  
  <p>Any ideas on detecting this?  The reason I want to is I want to hook up a "Delete all" button in the upper left hand corner when in delete mode.</p>
  
  <p>thanks</p>