We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d053848 commit 209d788Copy full SHA for 209d788
TYAlertControllerDemo/ViewController.m
@@ -45,10 +45,14 @@ - (IBAction)showAlertViewAction:(id)sender {
45
textField.placeholder = @"请输入密码";
46
}];
47
48
+ // first way to show
49
TYAlertController *alertController = [TYAlertController alertControllerWithAlertView:alertView preferredStyle:TYAlertControllerStyleAlert];
-
50
//alertController.alertViewOriginY = 60;
51
[self presentViewController:alertController animated:YES completion:nil];
52
+
53
+ // second way ,use UIView Category
54
+ //[alertView showInController:self preferredStyle:TYAlertControllerStyleAlert];
55
56
}
57
- (IBAction)showActionSheetAction:(id)sender {
58
0 commit comments