![(logo)](https://camo.githubusercontent.com/8acf731c0f0bfe36d2fb4f6bc58c1957ac5745eceda0060dd6fbf365dd8217f8/687474703a2f2f696d67302e70682e3132362e6e65742f476c597276336e794f6f462d683339304c7853357a513d3d2f363633313234313438383533373539323239352e676966)
- 1.The simplest UIAlertView replacement. You can use it just write one line of code.
- 2.Don't be afraid that the length of message is too long. There is a UITextView to show long message automatically.It supports line break.
- 3.Support queue to manager alertViews .
- 4.Nice blur background .
- 5.Block syntax.
- 6.Support iOS 6 and greater.
- 7.Please add Accelerate.framework before use.
[1] You should add Accelerate.framework
first.
[2] After that, please look at the following codes or download demo directly.
1.Show JCAlertView with 1 button
[JCAlertView showOneButtonWithTitle:@"title" Message:@"message" ButtonType:JCAlertViewButtonTypeDefault ButtonTitle:@"button" Click:^{
NSLog(@"click0");
}];
2.Show JCAlertView with 2 buttons
[JCAlertView showTwoButtonsWithTitle:@"title" Message:@"message" ButtonType:JCAlertViewButtonTypeCancel ButtonTitle:@"button0" Click:^{
NSLog(@"click0");
} ButtonType:JCAlertViewButtonTypeDefault ButtonTitle:@"button1" Click:^{
NSLog(@"click1");
}];
3.Show JCAlertView with more than 2 buttons
[JCAlertView showMultipleButtonsWithTitle:@"title" Message:@"message" Click:^(NSInteger index) {
NSLog(@"click%zi", index);
} Buttons:@{@(JCAlertViewButtonTypeDefault):@"index = 0"},@{@(JCAlertViewButtonTypeCancel):@"index = 1"},@{@(JCAlertViewButtonTypeWarn):@"index = 2"}, nil];
If you have any question or suggestion please feel free to connect me. Thank you!