gpt4 book ai didi

iphone - 文本字段键盘不出现

转载 作者:行者123 更新时间:2023-12-03 19:28:10 26 4
gpt4 key购买 nike

模拟器上的文本字段未显示键盘。

创建了文本字段。

    txt_UserName = new UITextField {
Placeholder = "Enter Username",
BorderStyle = UITextBorderStyle.RoundedRect,
Font = UIFont.FromName(Constants.KHELVETIC,Constants.KFontSize12),
VerticalAlignment = UIControlContentVerticalAlignment.Center,
AutocorrectionType = UITextAutocorrectionType.No,
AutocapitalizationType = UITextAutocapitalizationType.None,
ClearButtonMode = UITextFieldViewMode.WhileEditing,
LeftViewMode = UITextFieldViewMode.Always,
ReturnKeyType = UIReturnKeyType.Next,
BackgroundColor = UIColor.White,
ShouldReturn = delegate {
txt_Email.BecomeFirstResponder ();
return true;
}
};


txt_Email = new UITextField {
Placeholder = "Enter Email",
BorderStyle = UITextBorderStyle.RoundedRect,
Font = UIFont.FromName(Constants.KHELVETIC,Constants.KFontSize12),
VerticalAlignment = UIControlContentVerticalAlignment.Center,
AutocorrectionType = UITextAutocorrectionType.No,
AutocapitalizationType = UITextAutocapitalizationType.None,
ClearButtonMode = UITextFieldViewMode.WhileEditing,
KeyboardType = UIKeyboardType.EmailAddress,
LeftViewMode = UITextFieldViewMode.Always,
ReturnKeyType = UIReturnKeyType.Next,
BackgroundColor = UIColor.White,
ShouldReturn = delegate {
txt_Password.BecomeFirstResponder ();
return true;
}
};

找不到支持 iPhone-Portrait-PhonePad 键盘类型 5 的键板;使用 2870935746_Portrait_iPhone-Complex-Pad_Default

当我选择文本字段时,它会显示上述消息。

最佳答案

您需要取消选中硬件键盘选项,以便弹出模拟器上的键盘。因为如果您有硬件键盘选项,您将需要将键盘连接到您的设备以检查它是否正在使用。

关于iphone - 文本字段键盘不出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26056061/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com