我想以不同的方式显示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]];
欢迎任何帮助。
答案 0 :(得分:0)
试试这个
[[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!"];
答案 1 :(得分:-1)
class CustomCell: UITableViewCell {
@IBOutlet weak var lbl: UILabel!
@IBOutlet weak var btn: UIButton!
}