Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Sumi-Interactive/SIAlertView
An UIAlertView replacement with block syntax and fancy transition styles.
https://github.com/Sumi-Interactive/SIAlertView
Last synced: 2 months ago
JSON representation
An UIAlertView replacement with block syntax and fancy transition styles.
- Host: GitHub
- URL: https://github.com/Sumi-Interactive/SIAlertView
- Owner: Sumi-Interactive
- License: mit
- Created: 2013-05-03T07:48:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-06-22T15:53:00.000Z (over 6 years ago)
- Last Synced: 2024-05-18T16:01:24.844Z (8 months ago)
- Language: Objective-C
- Size: 917 KB
- Stars: 2,521
- Watchers: 117
- Forks: 427
- Open Issues: 70
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome - SIAlertView - An UIAlertView replacement with block syntax and fancy transition styles. (etc)
- awesome - SIAlertView - An UIAlertView replacement with block syntax and fancy transition styles. (etc)
README
SIAlertView
=============An UIAlertView replacement with block syntax and fancy transition styles. As seen in [Grid Diary](http://griddiaryapp.com/).
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=Sumi-Interactive&url=https://github.com/Sumi-Interactive/SIAlertView&title=SIAlertView&tags=github&category=software)
## Preview
![SIAlertView Screenshot](https://github.com/Sumi-Interactive/SIAlertView/raw/master/screenshot.png)
## 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:**
```objc
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](https://github.com/Sumi-Interactive) in the development of [Grid Diary](http://griddiaryapp.com/).
## License
SIAlertView is available under the MIT license. See the LICENSE file for more info.