Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MBProgressHUD blocks interactions with an uiscrollview when shown

Tags:

ios

I'm using this MBProgressHUD code:

  MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
  hud.mode = MBProgressHUDModeText;
  hud.removeFromSuperViewOnHide = YES;
  [hud hide:YES afterDelay:1];

For the period that the HUD is being shown interactions with an UIScrollview (that contains the button this is called from) are disabled. I can't click on other buttons, or scroll the UIScrollview.

Why is MBProgressHUD blocking my interactions with the UIScrollview and how can I disable it?

like image 695
MB. Avatar asked May 14 '12 20:05

MB.


1 Answers

I'm using MBProgressHUD version 0.5 and simply set:

HUD.userInteractionEnabled = NO;

With this allow user interaction in parent view.

like image 144
hernan Avatar answered Nov 03 '22 12:11

hernan