title: Change the UIAlertController buttons background color
body: <p>Is it possible to change the background color of UIAlertController? I have managed to change the background color of UIAlertView. I have gone through third parties also to do the same, but I want o do it without use of any third party. </p>
  
  <p><strong>Below is my code:</strong></p>
  
  <pre><code>UIAlertController * alert=[UIAlertController alertControllerWithTitle:@"Title"
                                                                    message:@"Message"
                                                             preferredStyle:UIAlertControllerStyleAlert];
      UIView *firstSubview = alert.view.subviews.firstObject;
      UIView *alertContentView = firstSubview.subviews.firstObject;
      for (UIView *subSubView in alertContentView.subviews) {
          subSubView.backgroundColor = [UIColor colorWithRed:255/255.0f green:255/255.0f blue:255/255.0f alpha:1.0f];
      }
      UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action){
          //Close Action
      }];
  
      UIAlertAction *deleteAction = [UIAlertAction actionWithTitle:@"Delete" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action){
          //Close Action
      }];
  
      [cancelAction setValue:[UIColor greenColor] forKey:@"titleTextColor"];
      [deleteAction setValue:[UIColor redColor] forKey:@"titleTextColor"];
  
      [alert addAction:cancelAction];
      [alert addAction:deleteAction];
      [self presentViewController:alert animated:YES completion:nil];
  </code></pre>
  
  <p>Thanks in advance!!</p>