Latest 1.0.1
Homepage https://github.com/LYajun/LGAlertHUD
License MIT
Platforms ios 8.0, requires ARC
Authors

提示框,进度条

Alert:

LGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUD

HUD:

LGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUDLGAlertHUD

使用方式

1、集成:

pod 'LGAlertHUD'

2、配置

//设置YJAlertView样式
YJAlertView *alert = [YJAlertView appearance];

// 背景
alert.layerCornerRadius = 3;
alert.backgroundColor = [UIColor whiteColor];
alert.coverColor = [UIColor colorWithWhite:0 alpha:0.6];
alert.separatorsColor = LGA_Color(0x1379EC);

// 标题
alert.titleFont = [UIFont systemFontOfSize:17];
alert.titleTextColor = LGA_Color(0x333333);

// 内容
alert.messageFont = [UIFont systemFontOfSize:14];
alert.messageTextColor = LGA_Color(0x333333);

// 普通按钮
alert.buttonsBackgroundColor = [UIColor whiteColor];
alert.buttonsBackgroundColorHighlighted = LGA_Color(0xEEEEEE);
alert.buttonsTitleColor = alert.separatorsColor;
alert.buttonsTitleColorHighlighted = alert.buttonsTitleColor;
alert.buttonsFont = [UIFont systemFontOfSize:15];

// 取消按钮
alert.cancelButtonBackgroundColor = [UIColor whiteColor];
alert.cancelButtonBackgroundColorHighlighted = LGA_Color(0xEEEEEE);
alert.cancelButtonTitleColor = alert.separatorsColor;
alert.cancelButtonTitleColorHighlighted =  alert.cancelButtonTitleColor;
alert.cancelButtonFont = [UIFont systemFontOfSize:15];

// 确定按钮
alert.destructiveButtonBackgroundColor = alert.separatorsColor;
alert.destructiveButtonBackgroundColorHighlighted = LGA_Color(0x0960EC);
alert.destructiveButtonTitleColor = [UIColor whiteColor];
alert.destructiveButtonTitleColorDisabled = [UIColor whiteColor];
alert.destructiveButtonFont = alert.cancelButtonFont;

// 按钮默认标题
_cancelTitle = @"取消";
_confirmTitle = @"确定";

Latest podspec

{
    "name": "LGAlertHUD",
    "version": "1.0.1",
    "summary": "u63d0u793au6846,u8fdbu5ea6u6761",
    "homepage": "https://github.com/LYajun/LGAlertHUD",
    "license": "MIT",
    "authors": {
        "u5218u4e9au519b": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/LYajun/LGAlertHUD.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "LGAlertHUD/*.{h,m}",
        "LGAlertHUD/AlertView/*.{h,m}"
    ],
    "resources": "LGAlertHUD/LGAlertHUD.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This