24

I've used SVProgressHUD which I liked but it didn't support orientation changes. I am using MBProgressHUD but it is a modal HUD.

Is there any good alternative to these? I need the HUD to be non-modal and needs to support orientation changes.

Gary
  • 4,198
  • 2
  • 21
  • 26

5 Answers5

50

Simply setting:

HUD.userInteractionEnabled = NO;

is all it takes to achieve a non-modal behavior (allow touches to pass through the HUD). You don't even have to modify the actual MBProgressHUD code.

Matej Bukovinski
  • 6,152
  • 1
  • 36
  • 36
  • Thanks. I believe you're the one who added all those fixes in the HUD last month and I'm using your branch since it has newer fixes. – Gary May 31 '11 at 14:34
  • 1
    This isn't really a fix. It's standard UIKit behavior inherited from UIView. You're right regarding the fork though, I haven't pulled the latest changes into the main repository yet. – Matej Bukovinski Jun 02 '11 at 06:35
30

SVProgressHUD now does support orientation change. Sorry it took so long.

samvermette
  • 40,269
  • 27
  • 112
  • 144
  • I use it and love it for its simplicity; especially when I needed singleton object, which MBProgressView didn't support. – viral Apr 08 '13 at 13:22
5

There's about half a dozen alternatives here: http://cocoacontrols.com/search?q=progress&commit=Search

...although most are modal. But it would be fairly straightforward to adapt to be non-modal. Hopefully one of the libraries at the link above will serve you better anyway.

lxt
  • 31,146
  • 5
  • 78
  • 83
1

MBProgressHUD does support orientation changes and is modal in a way that takes whole screen with invisible view. There's source code available, modify it.

TheBlack
  • 1,245
  • 1
  • 8
  • 12
  • As TheBlack says, as far as I can tell MBProgressHUD now handles rotation without any problems. – AndyDunn Jun 26 '12 at 10:41
  • I believe the comments about orientation support were regarding `SVProgressHUD`. In any case, both libraries now support orientation changes. – Chris Nolet Sep 04 '14 at 23:33
0

A viable alternative written completely in Swift could be IHProgressHUD. Minimum Swift 4.2 required

Md. Ibrahim Hassan
  • 5,359
  • 1
  • 25
  • 45