title: Determine whether UITableViewCell is editing from "swipe" or "self.editButton"
body: <p>I'm trying to determine whether a UITableViewCell subclass is in edit mode from a user's swipe (in which case I don't need to indent my subviews) or from the user pressing the "Edit" button associated with the UITableViewController. (In which case I do.)</p>
  
  <p>I know it's possible from a cell's perspective, since the <code>self.textLabel</code> view automatically indents properly. I have tried:</p>
  
  <pre><code>-(void)layoutSubviews {
     [super layoutSubviews];
  
     CGRect labelFrame = self.textLabel.frame;
     labelFrame.origin.x += 5;
     myCustomUILabel.frame = labelFrame;
  }
  </code></pre>
  
  <p>But my custom label does not properly indent. (Though the <code>self.textLabel</code> view does?)</p>
  
  <p>I would like to avoid the following:</p>
  
  <ul>
  <li>Providing the cells with a reference to the parent table.</li>
  <li>Overriding methods in the UITableViewController class to let the cells know whether they are being edited individually or the entire table is editing.</li>
  </ul>