UIAlertAction *action2 = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) { }]; [action2 setValue:[UIColor redColor] forKey:@"titleTextColor"];
这需求不陌生,直接上代码。 1,获取所有的属性 2, 是否存在某个属性 3,修改颜色 作为UIAlertActio...
点击跳转 字体改变颜色 class改变字体颜色 红色字体