Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UIAlertController中的自定义文本字段_Ios_Objective C_Uitextfield_Uialertcontroller - Fatal编程技术网

Ios UIAlertController中的自定义文本字段

Ios UIAlertController中的自定义文本字段,ios,objective-c,uitextfield,uialertcontroller,Ios,Objective C,Uitextfield,Uialertcontroller,我可以使用在UIAlertController中添加一个文本字段 UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Title" message:@"message" preferredStyle:UIAlertControllerStyleAlert]; [alertController addTextFieldWithConfigurationHandler:^(UITextF

我可以使用在UIAlertController中添加一个文本字段

UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Title" message:@"message" preferredStyle:UIAlertControllerStyleAlert];
[alertController addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {

}];

是否有可能在警报控制器中添加自定义文本字段?

我认为不可能在
UIAlertController
中使用
UITextField
子类。您只能在配置处理程序中编辑textfield的属性。

我认为不可能在
UIAlertController
中使用
UITextField
子类。您只能在配置处理程序中编辑文本字段的属性。

,您不能。为此,必须实现自定义警报视图。 你可以试试图书馆


或者,如果您需要文本字段具有
UIAlertView
自身的“干净”外观-

,则不能。为此,必须实现自定义警报视图。 你可以试试图书馆


或者,如果您需要文本字段具有
UIAlertView
自身的“干净”外观-

自定义文本字段的意思是?@Krunal一个子类文本字段。自定义文本字段的意思是?@Krunal一个子类文本字段。