1.Controller继承UITextViewDelegate
2.先创建一个UITextView
UITextView *textView = [[UITextView alloc] init];
textView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
textView.layer.borderWidth = 1.0f;
textView.backgroundColor = [UIColor colorWithWhite:1.0 alpha:1.0];
textView.layer.cornerRadius = 5.0f;
textView.returnKeyType = UIReturnKeyDone;
textView.frame = CGRectMake(20, 60, 230, 100);
textView.delegate = self;
3.实现UIAlertController
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"文字设定\n\n\n\n\n\n" message:@"" preferredStyle:UIAlertControllerStyleAlert];
// 取消按钮
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
// 设定按钮
UIAlertAction *setAction = [UIAlertAction actionWithTitle:@"設定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull