处理外部键盘和软件键盘

时间:2015-06-20 12:54:54

标签: ios bluetooth keyboard

我的应用程序使用BarCode扫描仪(Inateck BCST-10),与蓝牙连接,带有HID配置文件(外部硬件键盘)。默认情况下,UITextField是firstResponder,用于从扫描程序中捕获条形码。

扫描仪脱机时,会出现软件键盘。我想处理那个案子。

当UIKeyboardWillShowNotification:

时我做了什么
mytextfield.resignFirstResponder()

但是当扫描仪上线时,如何在我的UITextfield上取回第一个响应者?

0 个答案:

没有答案