UIAlertAction改变字体颜色

UIAlertAction *action2 = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
    
}];

[action2 setValue:[UIColor redColor] forKey:@"titleTextColor"];

你可能感兴趣的:(UIAlertAction改变字体颜色)