如何在UIAlertController中设置两个UITextField之间的距离?

Hoa*_*era 2 objective-c uialertview ios

我用a UIAlertController来呈现一个带有两个UITextFields 的对话框.如何设置TextFields的距离UIAlertController

[alertController addTextFieldWithConfigurationHandler:
        ^(UITextField *textField) {
      textField.placeholder = @"Nick Email";
      textField.textColor = [UIColor blueColor];
      textField.clearButtonMode = UITextFieldViewModeWhileEditing;
      textField.text=username;
      textField.userInteractionEnabled = NO;}];
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {

  textField.placeholder = @"Full Name";
  [textField setKeyboardType : UIKeyboardTypeEmailAddress];
  textField.textColor = [UIColor blueColor];
  textField.clearButtonMode = UITextFieldViewModeWhileEditing;

  textField.text=email;
  textField.userInteractionEnabled = NO;

}];
Run Code Online (Sandbox Code Playgroud)

截图

Anb*_*hik 5

UIAlertController视图很简单,无法自定义.如果你需要,那么添加自定义UIView或现有的模态控制器,然后去任何第三方