我想以不同的方式显示Hud的Ring和Text颜色。我使用的是hud样式SVProgressHUDStyleCustom
,但无法实现所需的结果。
我的代码如下:
[SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];
[SVProgressHUD setRingThickness:5.0];
[SVProgressHUD setForegroundColor:[UIColor redColor]];
[SVProgressHUD setFont:[UIFont ProximaNovaA_Light:16.0]];
[SVProgressHUD setCornerRadius:3];
[SVProgressHUD setBackgroundColor:[UIColor whiteColor]];
任何帮助都将受到欢迎。
最佳答案
尝试这个
[[SVProgressHUD appearance] setHudBackgroundColor:[[UIColor greenColor] colorWithAlphaComponent:0.4]];
[[SVProgressHUD appearance] setHudForegroundColor:[UIColor yellowColor]];
[[SVProgressHUD appearance] setHudFont:[UIFont fontWithName:@"MarkerFelt-Wide" size:16]];
[[SVProgressHUD appearance] setHudStatusShadowColor:[UIColor greenColor]];
[SVProgressHUD showSuccessWithStatus:@"Great Success!"];
关于ios - 如何使用SVProgressHUDStyleCustom更改铃声和文本的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41255475/