RJBlurAlertView 0.0.2

RJBlurAlertView 0.0.2

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布上次发布2014年12月

rayjune 维护。



  • rayjune

RJBlurAlertView 是一个带有模糊背景视图的自定义提醒视图。它可以以下落或弹跳的方式显示。

屏幕截图

自定义内容视图类型

如何安装

旧方法

1.RJBlurAlertView.hRJBlurAlertView.mUIImage+ImageEffects.hUIImage+ImageEffects.m 复制到您的项目中

如何使用

RJBlurAlertView 有 RJBlurAlertViewTypeTextRJBlurAlertViewTypeCustomView 类型。您可以使用以下方式使用它

标题和文本

RJBlurAlertView *alertView = [[RJBlurAlertView alloc] initWithTitle:@"title" text:@"this is text" cancelButton:YES color:[UIColor blueColor]];

//set animation type
alertView.animationType = RJBlurAlertViewAnimationTypeDrop;

[alertView setCompletionBlock:^(RJBlurAlertView *alert, UIButton *button) {
    if (button == alert.okButton) {
        NSLog(@"ok button touched!");
    }else{
        NSLog(@"cancel button touched!");
    }
}];
[alertView show];

自定义内容视图

UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 180, 180)]; 
contentView.backgroundColor = [UIColor blackColor];
RJBlurAlertView *alertView = [[RJBlurAlertView alloc] initWithTitle:@"title" contentView:contentView cancelButton:YES color:[UIColor blueColor]];
[alertView show];