Latest 1.0.1
Homepage https://github.com/josercc/UIView-MBProgressHUD
License MIT
Platforms ios 8.0, requires ARC
Dependencies MBProgressHUD
Authors

UIView-MBProgressHUD

给MBProgressHUD写的扩展

Cocoapods

pod 'UIView+MBProgressHUD'

How to Use

Show

- (void)showHUDDefaultLoadingText;
/*!
 *  @brief 展示HUD 不会自动的消失 默认为MBProgressHUDModeIndeterminate类型
 *
 *  @param text 显示的Text
 */
- (void)showHUDText:(NSString *)text;
/*!
 *  @brief 1.5秒会自动消失 MBProgressHUDModeText类型
 *
 *  @param text 显示的Text
 */
- (void)showHUDTextAfterDealy:(NSString *)text;
/*!
 *  @brief 多少秒后会自动的消失
 *
 *  @param text       显示的Text
 *  @param afterDealy 显示多少秒
 */
- (void)showHUDText:(NSString *)text afterDealy:(NSTimeInterval)afterDealy;
/*!
 *  @brief 设置为Mode类型 不会自动的消失
 *
 *  @param text 显示的Text
 *  @param mode MBProgressHUDMode
 */
- (void)showHUDText:(NSString *)text mode:(MBProgressHUDMode)mode;

Hide

/*!
 *  @brief 立刻消失
 */
- (void)hideHUD;
/*!
 *  @brief 先提示文本 之后1.5秒消失
 *
 *  @param text 显示的Text
 */
- (void)hideHUDTextAfterDealy:(NSString *)text;
/*!
 *  @brief 多少秒后消失
 *
 *  @param text       text 显示的Text
 *  @param afterDealy 多少秒
 */
- (void)hideHUDText:(NSString *)text afterDealy:(NSTimeInterval )afterDealy;

Latest podspec

{
    "name": "UIView+MBProgressHUD",
    "version": "1.0.1",
    "summary": "u7ed9MBProgressHUDu5199u7684u6269u5c55",
    "homepage": "https://github.com/josercc/UIView-MBProgressHUD",
    "license": "MIT",
    "authors": {
        "15038777234": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/josercc/UIView-MBProgressHUD.git",
        "tag": "1.0.1"
    },
    "source_files": "Class/**/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "MBProgressHUD": [
            "~> 1.0.0"
        ]
    }
}

Pin It on Pinterest

Share This