title: Change uitableview cell delete button background color
body: <p>I have seen how to do in this <a href="https://stackoverflow.com/questions/20290766/change-the-color-of-default-red-color-delete-button-in-uitableviewcell-when-swip">link</a>.</p>
  
  <p>I followed and implement in my view controller where it has tableview and other subview. Tableview cell is implemented by custom cell. </p>
  
  <p>Problem is that, I never see this "UITableViewCellDeleteConfirmationView" to change colour of UITableView cell delete button colour. I am writing on iOS7. So, is it different already? Or am I doing something wrong? </p>
  
  <pre><code> -(void)viewWillLayoutSubviews
  {
      [super viewWillLayoutSubviews];
  
      NSArray *subviews = [self.view subviews];
  
      // Return if there are no subviews
      if ([subviews count] == 0) return;
  
      for (UIView *subview1 in subviews)
      {
          NSLog(@"subview1 &gt; %@",NSStringFromClass([subview1 class]));
  
  
          for(UIView *subview2 in subview1.subviews)
          {
              NSLog(@"subview2 &gt; %@",NSStringFromClass([subview2 class]));
  
  
              for(UIView *subview3 in subview2.subviews)
              {
                  NSLog(@"subview3 &gt; %@",NSStringFromClass([subview3 class]));
  
  
                  for(UIView *subview4 in subview3.subviews)
                  {
                      NSLog(@"subview4 &gt; %@",NSStringFromClass([subview4 class]));
  
                      for(UIView *subview5 in subview4.subviews)
                      {
                          NSLog(@"subview5 &gt; %@",NSStringFromClass([subview5 class]));
  
                          for(UIView *subview6 in subview5.subviews)
                          {
                              NSLog(@"subview6 &gt; %@",NSStringFromClass([subview6 class]));
  
                          }
  
                      }
  
                  }
  
  
              }
  
  
              //
              //            if ([NSStringFromClass([subview2 class])     isEqualToString:@"UITableViewCellDeleteConfirmationView"])
              //            {
              //                //your color
              //                ((UIView*)[subview2.subviews firstObject]).backgroundColor=[UIColor blueColor];
              //                
              //                
              //            }
          }
  
  
      }
  
  }
  </code></pre>