简体   繁体   English

UITextField成为FirstResponder,但键盘未显示

[英]UITextField becomeFirstResponder but the keyboard doesn't showed

I create a uitextfield and explicitly I call: 我创建一个uitextfield,并明确地调用:

[myTextField setEnabled:YES];
[myTextField becomeFirstResponder];

but the keyboard isn't showed. 但没有显示键盘。 Can I explicitly call the keyboard? 我可以明确呼叫键盘吗?

Thanks 谢谢

have you checked if your textfield is properly initialized ? 您是否检查过文本字段是否已正确初始化? Or is it for some reason nil. 还是出于某些原因而为零。 or you did not connect it properly in IB ? 还是您没有在IB中正确连接它?
Maybe you can provide more information ? 也许您可以提供更多信息?

this is possible if the user has an external keyboard enabled. 如果用户启用了外部键盘,则可以这样做。 You CANNOT explicitly call the keyboard 您无法明确调用键盘

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM