UIAlertController 可以点击不消失吗

如题所述

这个好像不可以吧,你可以自己用UIView 做一个。

你是要做强制更新之类的吧,只设置一个按钮就行了

在点击方法里面再创建一个弹窗不行吗? 再不行就view自定义最方便了

在点击方法里重新prentCtroller一下,
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"好的" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

UITextField *textField = alertCtrl.textFields.firstObject;
textField.textAlignment = NSTextAlignmentCenter;
if (textField.text.length == 0) {
// [CETCAlertView showMessage:placeholder afterDelay:1];
[self presentViewController:alertCtrl animated:YES completion:nil];
return;
}

matchBluetooth = textField.text;
}];
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答