Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MBProgressHUD disabling interaction with UITableViewController

I'm using an MBProgressHUD inside of a UITableViewController. While I am able to get the HUD to display successfully, the HUD intercepts all of the screen's touch notifications and prevents scrolling in my UITableView.

I know that the intended functionality of MBProgressHUD might be to lock up the interface (say, during a blocking operation), but I want to know how to forward the touch events to the proper places regardless.

Any ideas?

like image 282
Dany Joumaa Avatar asked May 25 '12 00:05

Dany Joumaa


1 Answers

The MBProgressHUD is a subclass of an UIView so you have to disable the user interaction with it. So:

youMBProgressHUDPointer.userInteractionEnabled=NO;

like image 131
Naka Avatar answered Nov 09 '22 21:11

Naka