jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

-MBProgressMaxOffset moves the hud under the navigation bar #417

Closed dhiraj closed 6 years ago

dhiraj commented 8 years ago

I want to have the Progress HUD attached to the the top left corner of my view controller. When I set the offset to CGPointMake(-MBProgressMaxOffset, -MBProgressMaxOffset) it does move to the top left, but it moves all the way up, under the navigation bar, ideally it should stay below the navigation bar.

Any ideas on how one could go about doing this?

matej commented 6 years ago

Those values are pretty primitive and more of workaround then proper positioning. One way you could approach this to use a wrapper view that you position as you want and then add MBProgressHUD to it.