Skip to content

Commit 2b3b3c2

Browse files
committed
first commit
0 parents  commit 2b3b3c2

37 files changed

Lines changed: 1933 additions & 0 deletions

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Xcode
2+
.DS_Store
3+
*/build/*
4+
*.pbxuser
5+
!default.pbxuser
6+
*.mode1v3
7+
!default.mode1v3
8+
*.mode2v3
9+
!default.mode2v3
10+
*.perspectivev3
11+
!default.perspectivev3
12+
xcuserdata
13+
profile
14+
*.moved-aside
15+
DerivedData
16+
.idea/
17+
*.hmap
18+
19+
#Pods
20+
Pods
21+
Podfile.lock

LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2013 Sumi Interactive
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
##SIAlertView
2+
3+
An UIAlertView replacement with block syntax and fancy transition styles.
4+
5+
##FEATURES
6+
7+
- use window to present
8+
- happy with rotation
9+
- block syntax
10+
- styled transitions
11+
- queue support
12+
- UIAppearance support
13+
14+
##HOW TO USE
15+
16+
**Required:** iOS 6+, ARC
17+
18+
1. Add all files under `SIAlertView/SIAlertView` to your project
19+
2. Add `QuartzCore.framework` to your project
20+
3. Add `#import "SIAlertView.h"` before using it
21+
22+
##EXAMPLES
23+
24+
**Code:**
25+
26+
```
27+
SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"SIAlertView" andMessage:@"Sumi Interactive"];
28+
29+
[alertView addButtonWithTitle:@"Button1"
30+
type:SIAlertViewButtonTypeDefault
31+
handler:^(SIAlertView *alert) {
32+
NSLog(@"Button1 Clicked");
33+
}];
34+
[alertView addButtonWithTitle:@"Button2"
35+
type:SIAlertViewButtonTypeDestructive
36+
handler:^(SIAlertView *alert) {
37+
NSLog(@"Button2 Clicked");
38+
}];
39+
[alertView addButtonWithTitle:@"Button3"
40+
type:SIAlertViewButtonTypeCancel
41+
handler:^(SIAlertView *alert) {
42+
NSLog(@"Button3 Clicked");
43+
}];
44+
45+
alertView.willShowHandler = ^(SIAlertView *alert) {
46+
NSLog(@"%@, willShowHandler", self);
47+
};
48+
alertView.didShowHandler = ^(SIAlertView *alert) {
49+
NSLog(@"%@, didShowHandler", self);
50+
};
51+
alertView.willDismissHandler = ^(SIAlertView *alert) {
52+
NSLog(@"%@, willDismissHandler", self);
53+
};
54+
alertView.didDismissHandler = ^(SIAlertView *alert) {
55+
NSLog(@"%@, didDismissHandler", self);
56+
};
57+
58+
alertView.transitionStyle = SIAlertViewTransitionStyleBounce;
59+
60+
[alertView show];
61+
```
62+
63+
##LICENSE
64+
65+
SIAlertView is available under the MIT license. See the LICENSE file for more info.

SIAlertView.podspec

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'SIAlertView'
3+
s.version = '1.0'
4+
s.license = 'MIT'
5+
s.summary = 'An UIAlertView replacement.'
6+
s.homepage = 'https://github.com/Sumi-Interactive/SIAlertView'
7+
s.author = { 'Sumi Interactive' => '[email protected]' }
8+
s.source = { :git => 'https://github.com/Sumi-Interactive/SIAlertView.git',
9+
:tag => '1.0' }
10+
11+
s.description = 'An UIAlertView replacement with block syntax and fancy transition styles.'
12+
13+
s.requires_arc = true
14+
s.framework = 'QuartzCore'
15+
s.source_files = 'SIAlertView/SIAlertView/*.{h,m,bundle}'
16+
end
1.02 KB
Loading
1.22 KB
Loading
1.01 KB
Loading
1.15 KB
Loading
1.02 KB
Loading
1.22 KB
Loading

0 commit comments

Comments
 (0)