Search code examples
iosobjective-cmbprogresshud

IOS - MBProgressHUD set Custom Background image


Bydefault MBProgressHUD came with black background color. i know how to change this color to blue or green or etc. But Is it possible to set custom Background image in Background on MBProgressHUD?

I want to set custom my application's suitable background image in place of Black color


Solution

  • Try this code to set image

    hudProgress.color =[UIColor colorWithPatternImage:[UIImage imageNamed:@"yourBackground.png"]]