Latest 1.0.3
Homepage https://github.com/EarthMass/ProgressDemo
License MIT
Platforms ios 8.0, requires ARC
Dependencies Toast, SVProgressHUD
Frameworks UIKit, Foundation
Authors

ProgressDemo

对SVProgressHUD 以及 Toast 二次封装,便于使用

效果

HXProgressHUD

IOS版本 8.0+

安装

pod 'HXProgressHUD'

使用

引入 头文件 #import <HXProgress/HXProgress.h>

Toast使用

   [HXProgress showToastWithMsg:@"固定2秒的提示" title:@"标题" image:[UIImage imageNamed:@"LOGO.png"] tapBlock:^(BOOL didTap) {
                        NSLog(@"点击了 Toast");
                    }] ;

ProgressHUD 使用

 [HXProgress showWithStatus:@"加载中..."];

配置

//提示框样式
    [HXProgress setProgressHUDStyle:^{
        [SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];
        [SVProgressHUD setBackgroundColor:[UIColor colorWithWhite:0.0 alpha:1]];
        [SVProgressHUD setForegroundColor:[UIColor whiteColor]];

        [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeNone];

    }];
    //toast 设置
    CSToastStyle * toastStyle = [[CSToastStyle alloc] initWithDefaultStyle];
    toastStyle.backgroundColor = [[UIColor redColor] colorWithAlphaComponent:0.8];
    [HXProgress setToastPosition:CSToastPositionCenter style:toastStyle isTapDismiss:NO];

Latest podspec

{
    "name": "HXProgressHUD",
    "version": "1.0.3",
    "summary": "u5bf9SVProgressHUD u4ee5u53ca Toast u4e8cu6b21u5c01u88c5uff0cu4fbfu4e8eu4f7fu7528",
    "description": "u63d0u793au6846 u52a0u8f7d u4ee5u53ca u63d0u793atoastn      u5bf9SVProgressHUD u4ee5u53ca Toast u4e8cu6b21u5c01u88c5uff0cu4fbfu4e8eu4f7fu7528",
    "homepage": "https://github.com/EarthMass/ProgressDemo",
    "license": "MIT",
    "authors": {
        "mars": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/EarthMass/ProgressDemo.git",
        "tag": "1.0.3"
    },
    "source_files": "HXProgress/*.{h,m}",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true,
    "dependencies": {
        "Toast": [
            "~> 3.1.0"
        ],
        "SVProgressHUD": []
    }
}

Pin It on Pinterest

Share This