Skip to content

Commit 7304949

Browse files
committed
Update README.md
1 parent 31f824c commit 7304949

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ pod 'TYAlertController', '~> 1.0.0'
2424
### usege demo
2525

2626
* show in controller (tow way)
27+
28+
```objc
29+
// alertView lifecycle block
30+
@property (strong, nonatomic) void (^viewWillShowHandler)(UIView *alertView);
31+
@property (strong, nonatomic) void (^viewDidShowHandler)(UIView *alertView);
32+
@property (strong, nonatomic) void (^viewWillHideHandler)(UIView *alertView);
33+
@property (strong, nonatomic) void (^viewDidHideHandler)(UIView *alertView);
34+
35+
// dismiss controller completed block
36+
@property (nonatomic, copy) void (^dismissComplete)(void);
37+
```
38+
2739
```objc
2840
TYAlertView *alertView = [TYAlertView alertViewWithTitle:@"TYAlertView" message:@"This is a message, the alert view containt text and textfiled. "];
2941

0 commit comments

Comments
 (0)