An example of a custom view hud Based on MBProgressHUD, mbprogresshudhud
A hud used in the project, based on MBProgressHUD, is implemented using a custom view. The animation effect is referenced online and is not ideal.
If you need it, you can see the source code (cocoapods is used in the source code, and pod install is required before running ).
Attached effect:
There are some settings about MBProgressHUD, as follows:
1 hud. opacity = 0.2; 2 hud. mode = MBProgressHUDModeCustomView; 3 hud. margin = 10.0f; // set the margins of the HUD and customerView (20 by default) 4 hud. yOffset =-20366f; // set the y offset of the HUD from the center (xOffset can also be set) 5 // hud. userInteractionEnabled = NO; // when userInteractionEnabled = NO, The containerView is not blocked and the view can respond normally.
You can adjust it as needed, or expand other methods as needed.