Skip to content

Commit 402acee

Browse files
committed
update readme
1 parent 2b2529c commit 402acee

1 file changed

Lines changed: 31 additions & 15 deletions

File tree

README.md

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
##SIAlertView
1+
SIAlertView
2+
=============
23

34
An UIAlertView replacement with block syntax and fancy transition styles. As seen in [Grid Diary](http://griddiaryapp.com/).
45

6+
## Preview
7+
58
![SIAlertView Screenshot](https://github.com/Sumi-Interactive/SIAlertView/raw/master/screenshot.png)
69

7-
##FEATURES
10+
## Features
811

912
- use window to present
1013
- happy with rotation
@@ -13,15 +16,24 @@ An UIAlertView replacement with block syntax and fancy transition styles. As see
1316
- queue support
1417
- UIAppearance support
1518

16-
##HOW TO USE
19+
## Intallation
20+
21+
### Cocoapods(Recommended)
1722

18-
**Required:** iOS 6+, ARC
23+
1. Add `pod 'SIAlertView'` to your Podfile.
24+
2. Run `pod install`
25+
26+
### Manual
1927

2028
1. Add all files under `SIAlertView/SIAlertView` to your project
2129
2. Add `QuartzCore.framework` to your project
22-
3. Add `#import "SIAlertView.h"` before using it
2330

24-
##EXAMPLES
31+
## Requirements
32+
33+
- iOS 6.0 and greater
34+
- ARC
35+
36+
## Examples
2537

2638
**Code:**
2739

@@ -44,24 +56,28 @@ SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"SIAlertView" andMe
4456
NSLog(@"Button3 Clicked");
4557
}];
4658
47-
alertView.willShowHandler = ^(SIAlertView *alert) {
48-
NSLog(@"%@, willShowHandler", self);
59+
alertView.willShowHandler = ^(SIAlertView *alertView) {
60+
NSLog(@"%@, willShowHandler", alertView);
4961
};
50-
alertView.didShowHandler = ^(SIAlertView *alert) {
51-
NSLog(@"%@, didShowHandler", self);
62+
alertView.didShowHandler = ^(SIAlertView *alertView) {
63+
NSLog(@"%@, didShowHandler", alertView);
5264
};
53-
alertView.willDismissHandler = ^(SIAlertView *alert) {
54-
NSLog(@"%@, willDismissHandler", self);
65+
alertView.willDismissHandler = ^(SIAlertView *alertView) {
66+
NSLog(@"%@, willDismissHandler", alertView);
5567
};
56-
alertView.didDismissHandler = ^(SIAlertView *alert) {
57-
NSLog(@"%@, didDismissHandler", self);
68+
alertView.didDismissHandler = ^(SIAlertView *alertView) {
69+
NSLog(@"%@, didDismissHandler", alertView);
5870
};
5971
6072
alertView.transitionStyle = SIAlertViewTransitionStyleBounce;
6173
6274
[alertView show];
6375
```
6476

65-
##LICENSE
77+
## Credits
78+
79+
SIAlertView was created by [Sumi Interactive](https://github.com/Sumi-Interactive) in the development of [Grid Diary](http://griddiaryapp.com/).
80+
81+
## License
6682

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

0 commit comments

Comments
 (0)