An example of a custom view hud Based on MBProgressHUD, mbprogresshudhud

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.