ios - 如何使用SVProgressHUDStyleCustom更改铃声和文本的颜色

标签 ios objective-c svprogresshud

我想以不同的方式显示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/

相关文章:

ios - 在不阻塞标签栏的情况下显示屏蔽的 BTProgressHUD?

ios - iOS 版本之间的 UIToolbar 疯狂

ios - 苹果 watch CMDeviceMotion 没有给我很好的读数

ios - SVProgressHUD 在显示另一条消息后不显示

ios - 在 viewDidLoad 中执行对服务器的调用

iphone 代码 - 更改 viewController 的 tabBar 徽章值

iphone - 更新应用程序时是否有可能更改目录?

iphone - Objective-C 中的内存管理问题

ios - 在 iOS 中的特定时间唤醒应用程序

ios - 在多个 Controller 中重用相同的委托(delegate)方法?