Skip to content

Latest commit

 

History

History
25 lines (24 loc) · 1.08 KB

README.md

File metadata and controls

25 lines (24 loc) · 1.08 KB

JQShelterView

shelterView,遮罩 就是一个遮罩的背景view,提供了暗色,明色,透明,暗模糊,明模糊,延时删除的功能

 UIButton * btn = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 101, 100)];
    btn.backgroundColor = [UIColor redColor];
    [[JQShelterView shareView]addSubview:btn];
    [JQShelterView isDark:YES];//这行不写默认透明

3

UIButton * btn = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 101, 100)];
    btn.backgroundColor = [UIColor redColor];
    [[JQShelterView shareView]addSubview:btn];
    [JQShelterView blurType:BlurTypeLight];

1

UIButton * btn = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 101, 100)];
    btn.backgroundColor = [UIColor redColor];
    [[JQShelterView shareView]addSubview:btn];
    [JQShelterView blurType:BlurTypeDark];

2