2016-12-21 11 views
2

Hud의 반지와 텍스트 색상을 다르게 표시하고 싶습니다. 허드 스타일 SVProgressHUDStyleCustom을 사용하고 있지만 원하는 결과를 얻을 수 없습니다.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

이 코드는 최신 SVProgressHud 작동하지 않습니다이

[[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!"]; 
+0

을보십시오. – Irfan

-1
[[SVProgressHUD appearance] setHudBackgroundColor:[[UIColor greenColor] colorWithAlphaComponent:0.4]]; 

[[SVProgressHUD appearance] setHudForegroundColor:[UIColor yellowColor]]; 
[[SVProgressHUD appearance] setHudFont:[UIFont fontWithName:@"MarkerFelt-Wide" size:16]];