MBProgressHUD新版改变颜色

    [UIActivityIndicatorView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]].color = [UIColor whiteColor];//菊花 全局设置

    MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:[UIApplication sharedApplication].keyWindow animated:YES];

    hud.label.textColor = [UIColor whiteColor];
    hud.label.text = @"加载中...";
    hud.label.font = [UIFont systemFontOfSize:15];
//背景颜色
    hud.bezelView.style = MBProgressHUDBackgroundStyleSolidColor;
    hud.bezelView.backgroundColor = [UIColor blackColor];

你可能感兴趣的:(MBProgressHUD新版改变颜色)