//Action Sheet Style 底部提示框
UIAlertAction *actionCancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnullaction) {
//点击后执行
NSLog(@"点击了取消按钮");
}];
[self presentViewController:alert animated:YES completion:^{
//添加输入框
//设置TextField提示信息
textField.placeholder = @"输入框";
[alert addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
//添加输入框
//设置TextField提示信息
textField.placeholder = @"第二个输入框";
}];
//创建UIAlertView控件 UIAlertView 在9.0后弃用
// UIAlertView *alert = [[UIAlertView alloc]
// initWithTitle:@"指定标题"
// message:@"指定消息" delegate:self //指定委托对象
// cancelButtonTitle:@"确定" //为底部取消按钮设置标题