1

my code is

    UIAlertController *alert = [UIAlertController
                                 alertControllerWithTitle:@"Touch ID for Eceipt" message:@"Touch ID or Enter Password" preferredStyle:UIAlertControllerStyleAlert];

    UIAlertAction *cancelButton = [UIAlertAction
                                actionWithTitle:@"Cancel"
                                style:UIAlertActionStyleDefault
                                handler:^(UIAlertAction * action) {
                                    //Handle your yes please button action here
                                }];
    alert.view.tintColor=[UIColor blueColor];          
    alert.view.backgroundColor=[UIColor whiteColor];   //this code changes the alert view color
    alert.view.layer.cornerRadius=10;
    [alert addAction:cancelButton];
    [self presentViewController:alert animated:YES completion:nil];

by this code, I can achieve a "blue coloured Cancel Button" and a white coloured alert view and a gray coloured background..

What i need is more dark Colour BG. here is my output screenshot above_code_output_screenshot i Need the BG like this screenshot actually_what_i_need_is_this_output

Vicky_Vignesh
  • 584
  • 2
  • 14
  • @Anbu.Karthik Narendra Pandey-> tried that but the result came was, its change the ALTER CONTENTVIEW COLOUR.it doesn't change the BG of the Alertcontentview. – Vicky_Vignesh Dec 08 '16 at 13:33
  • See: http://stackoverflow.com/questions/37293656/change-uialertcontroller-background-color – shallowThought Dec 08 '16 at 15:38

0 Answers0