Latest 1.4
Homepage https://github.com/kennygunie/SIAlertView
License MIT
Platforms ios 5.0, requires ARC
Frameworks QuartzCore
Authors ,

SIAlertView

fork by kennygunie

Replace button image by button color by adding:

@property (nonatomic, strong) UIColor *buttonBacgroundColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR;
@property (nonatomic, strong) UIColor *cancelButtonBacgroundColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR;
@property (nonatomic, strong) UIColor *destructiveButtonBacgroundColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR;

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.

Latest podspec

{
    "name": "[email protected]",
    "version": "1.4",
    "platforms": {
        "ios": "5.0"
    },
    "license": "MIT",
    "summary": "fork by kennygunie",
    "homepage": "https://github.com/kennygunie/SIAlertView",
    "authors": {
        "Sumi Interactive": "[email protected]",
        "Kien NGUYEN": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kennygunie/SIAlertView.git",
        "tag": "1.4"
    },
    "description": "An UIAlertView replacement with block syntax and fancy transition styles.",
    "requires_arc": true,
    "frameworks": "QuartzCore",
    "source_files": "SIAlertView/*.{h,m}",
    "resources": "SIAlertView/SIAlertView.bundle"
}

Pin It on Pinterest

Share This