An UIAlertView replacement with block syntax and fancy transition styles.
Objective-C
2,493
86 commits
updated Jun 22, 2018
An UIAlertView replacement with block syntax and fancy transition styles. As seen in Grid Diary.

pod 'SIAlertView' to your Podfile.pod installSIAlertView/SIAlertView to your projectQuartzCore.framework to your project(If you are having any problems, just select your project -> Build Phases -> Compile Sources, double-click the SIAlertView and add -fobjc-arc)
Code:
SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"SIAlertView" andMessage:@"Sumi Interactive"];
[alertView addButtonWithTitle:@"Button1"
type:SIAlertViewButtonTypeDefault
handler:^(SIAlertView *alert) {
NSLog(@"Button1 Clicked");
}];
[alertView addButtonWithTitle:@"Button2"
type:SIAlertViewButtonTypeDestructive
handler:^(SIAlertView *alert) {
NSLog(@"Button2 Clicked");
}];
[alertView addButtonWithTitle:@"Button3"
type:SIAlertViewButtonTypeCancel
handler:^(SIAlertView *alert) {
NSLog(@"Button3 Clicked");
}];
alertView.willShowHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, willShowHandler", alertView);
};
alertView.didShowHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, didShowHandler", alertView);
};
alertView.willDismissHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, willDismissHandler", alertView);
};
alertView.didDismissHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, didDismissHandler", alertView);
};
alertView.transitionStyle = SIAlertViewTransitionStyleBounce;
[alertView show];
SIAlertView was created by Sumi Interactive in the development of Grid Diary.
SIAlertView is available under the MIT license. See the LICENSE file for more info.
250 followers · starred May 2013
51 followers · starred Jul 2014
199 followers · starred Apr 2016
61 followers · starred Mar 2014
An UIAlertView replacement with block syntax and fancy transition styles.
Objective-C
2,493
86 commits
updated Jun 22, 2018
An UIAlertView replacement with block syntax and fancy transition styles. As seen in Grid Diary.

pod 'SIAlertView' to your Podfile.pod installSIAlertView/SIAlertView to your projectQuartzCore.framework to your project(If you are having any problems, just select your project -> Build Phases -> Compile Sources, double-click the SIAlertView and add -fobjc-arc)
Code:
SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"SIAlertView" andMessage:@"Sumi Interactive"];
[alertView addButtonWithTitle:@"Button1"
type:SIAlertViewButtonTypeDefault
handler:^(SIAlertView *alert) {
NSLog(@"Button1 Clicked");
}];
[alertView addButtonWithTitle:@"Button2"
type:SIAlertViewButtonTypeDestructive
handler:^(SIAlertView *alert) {
NSLog(@"Button2 Clicked");
}];
[alertView addButtonWithTitle:@"Button3"
type:SIAlertViewButtonTypeCancel
handler:^(SIAlertView *alert) {
NSLog(@"Button3 Clicked");
}];
alertView.willShowHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, willShowHandler", alertView);
};
alertView.didShowHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, didShowHandler", alertView);
};
alertView.willDismissHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, willDismissHandler", alertView);
};
alertView.didDismissHandler = ^(SIAlertView *alertView) {
NSLog(@"%@, didDismissHandler", alertView);
};
alertView.transitionStyle = SIAlertViewTransitionStyleBounce;
[alertView show];
SIAlertView was created by Sumi Interactive in the development of Grid Diary.
SIAlertView is available under the MIT license. See the LICENSE file for more info.
250 followers · starred May 2013
51 followers · starred Jul 2014
199 followers · starred Apr 2016
61 followers · starred Mar 2014