title: Delete button is covered by custom cell
body: <p><img src="https://i.stack.imgur.com/fAnYx.png" alt="enter image description here"></p>
  
  <p>I have an issue in one of my projects. I have one tableview like in the picture. My issue is my custom cell background is overlapping the UITableView delete button. Could any one please help me to bring it to front.</p>
  
  <ol>
  <li><p>I have used below code but some of the developers are saying that If we use that code Apple may be reject your app </p>
  
  <pre><code>- (void)layoutSubviews
  {
      [super layoutSubviews];
  
      for (UIView *subview in self.subviews) {
          for (UIView *subview2 in subview.subviews) {
              //NSLog(@"confirm is %@",[subview2 class]);
              if ([NSStringFromClass([subview2 class]) isEqualToString:@"UITableViewCellDeleteConfirmationView"])
              {
                  // move delete confirmation view
                  [subview bringSubviewToFront:subview2];
              } else if ([NSStringFromClass([subview2 class]) isEqualToString:@"_UITableViewCellActionButton"])
              {
                  [subview bringSubviewToFront:subview2];
              }
          }
      }
  }
  </code></pre></li>
  <li><p>another issue is the below code is only working upto iOS 7 but not working in iOS 8.</p></li>
  <li>If I set the <code>- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath;</code> method to YES I don't have issues but we don't want indent.</li>
  </ol>
  
  <p>Any ideas could be very helpful. </p>