CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by rayjune.
RJBlurAlertView is a custom alert view with a blurred background view.It can be showed as dropping or bounce.
1.Copy the RJBlurAlertView.h , RJBlurAlertView.m and UIImage+ImageEffects.h ,UIImage+ImageEffects.m to your project
RJBlurAlertView has RJBlurAlertViewTypeText and RJBlurAlertViewTypeCustomView types.You can use it following ways:
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];