在IPAD上关闭键盘 [英] Dismiss keyboard on IPAD
本文介绍了在IPAD上关闭键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Iphone上的UITextField的ResignFirstResponder semms不能用于Ipad。
如何以编程方式解雇我的键盘?
The ResignFirstResponder for an UITextField on the Iphone semms to not working for the Ipad. How can I dismiss my keyboard programmatically?
谢谢,
推荐答案
更新此答案不再准确。请参阅正确答案。
UPDATE This answer is no longer accurate. See the correct answer.
如果您的UITextField位于模态页面表视图(UIModalPresentationFormSheet),然后(当前)无法强制设备关闭键盘这篇devforums post 。
If your UITextField is in a modal page sheet view (UIModalPresentationFormSheet), then there is (currently) no way to force the device to dismiss the keyboard this devforums post from an apple engineer.
这篇关于在IPAD上关闭键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文