Skip to content

Commit 209d788

Browse files
committed
complete v1.0
1 parent d053848 commit 209d788

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

TYAlertControllerDemo/ViewController.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,14 @@ - (IBAction)showAlertViewAction:(id)sender {
4545
textField.placeholder = @"请输入密码";
4646
}];
4747

48+
// first way to show
4849
TYAlertController *alertController = [TYAlertController alertControllerWithAlertView:alertView preferredStyle:TYAlertControllerStyleAlert];
49-
5050
//alertController.alertViewOriginY = 60;
5151
[self presentViewController:alertController animated:YES completion:nil];
52+
53+
// second way ,use UIView Category
54+
//[alertView showInController:self preferredStyle:TYAlertControllerStyleAlert];
55+
5256
}
5357
- (IBAction)showActionSheetAction:(id)sender {
5458

0 commit comments

Comments
 (0)