UIAlertController tint color defaults to blue on highlight

后端 未结 11 1113
傲寒
傲寒 2021-01-01 10:56

I\'m use the following code to present a UIAlertController action sheet with the item text as red. I\'ve used the tint property to set the color.

UIAlertCont         


        
11条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-01 11:05

    Just add the tintColor after the presentViewController. Works on iOS 9.0.2

    [self presentViewController:alertController animated:YES completion:nil];
    
    [alertController.view setTintColor:[UIColor yellowColor]];
    

提交回复
热议问题