SIAlertView

An UIAlertView replacement with block syntax and fancy transition styles.

  • 所有者: Sumi-Interactive/SIAlertView
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

SIAlertView

An UIAlertView replacement with block syntax and fancy transition styles. As seen in Grid Diary.

Flattr this git repo

Preview

SIAlertView Screenshot

Features

  • use window to present
  • happy with rotation
  • block syntax
  • styled transitions
  • queue support
  • UIAppearance support

Installation

Cocoapods(Recommended)

  1. Add pod 'SIAlertView' to your Podfile.
  2. Run pod install

Manual

  1. Add all files under SIAlertView/SIAlertView to your project
  2. Add QuartzCore.framework to your project

Requirements

  • iOS 5.0 and greater
  • ARC

(If you are having any problems, just select your project -> Build Phases -> Compile Sources, double-click the SIAlertView and add -fobjc-arc)

Examples

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];

Credits

SIAlertView was created by Sumi Interactive in the development of Grid Diary.

License

SIAlertView is available under the MIT license. See the LICENSE file for more info.

主要指标

概览
名称与所有者Sumi-Interactive/SIAlertView
主编程语言Objective-C
编程语言Ruby (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2013-05-03 07:48:23
推送于2018-06-22 15:53:00
最后一次提交2014-10-08 10:12:15
发布数4
最新版本名称1.3 (发布于 2013-10-14 09:22:31)
第一版名称1.0 (发布于 2013-05-03 15:49:27)
用户参与
星数2.5k
关注者数115
派生数421
提交数91
已启用问题?
问题数63
打开的问题数43
拉请求数20
打开的拉请求数24
关闭的拉请求数24
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?