LGAlertHUD 1.1.5

LGAlertHUD 1.1.5

Maintained by LYajun.



 
Depends on:
Masonry>= 0
YJExtensions>= 0
 

  • By
  • lyj

LGAlertHUD

提示框,进度条

Alert:

HUD:

使用方式

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 = @"确定";