Objective c iOS 8中的操作表

Objective c iOS 8中的操作表,objective-c,iphone,ipad,ios8,uialertcontroller,Objective C,Iphone,Ipad,Ios8,Uialertcontroller,如何在iOS 8的UIAlertController操作表中设置标题背景色 下面的代码是我尝试过的。但我不知道如何设置行动单的标题颜色 这里你不需要弱/强的东西,因为没有形成保留循环。另外,这是一个复制品 - (IBAction)bt2Clicked:(UIButton *)sender { // Action sheet style. UIAlertController *actionSheet = [UIAlertController alertControllerWithTitle

如何在iOS 8的UIAlertController操作表中设置标题背景色

下面的代码是我尝试过的。但我不知道如何设置行动单的标题颜色


这里你不需要弱/强的东西,因为没有形成保留循环。另外,这是一个复制品
- (IBAction)bt2Clicked:(UIButton *)sender {

// Action sheet style.
   UIAlertController *actionSheet = [UIAlertController alertControllerWithTitle:@"Evacuate Building!" message:@"" preferredStyle:UIAlertControllerStyleActionSheet];

__weak ViewController *wself = self;

UIAlertAction *destructiveAction = [UIAlertAction actionWithTitle:@"Kick through door" style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
    __strong ViewController *sself = wself;
    sself.actionResponseLabel.text = @"Careful!";
}];

UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"Walk calmly" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
    __strong ViewController *sself = wself;
    sself.actionResponseLabel.text = @"Find nearest exit.";
}];

UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Do nothing" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
    __strong ViewController *sself = wself;
    sself.actionResponseLabel.text = @"Just relax";
}];


[actionSheet addAction:destructiveAction];
[actionSheet addAction:defaultAction];
[actionSheet addAction:cancelAction];
actionSheet.view.tintColor = [UIColor blackColor];

UIColor *customTitleColor=[UIColor colorWithRed:(0.0/255.0) green:(159.0/255.0) blue:(196.0/255.0) alpha:1.0];         //  **I need to set this colour to title.** 

[self presentViewController:actionSheet animated:YES completion:nil];  

}