蓝牙HID设备和放大器; iOS的文本框 [英] Bluetooth HID Device & iOS textFields

查看:460
本文介绍了蓝牙HID设备和放大器; iOS的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用BT设备,充当键盘,谈了iPad。
我们希望这个蓝牙设备去跟1场在我们的应用程序。 (这是它自己的看法)
所有其他文本框/ areaFields我们要显示的虚拟键盘。

We are using a BT device, which acts as a keyboard, to talk to the iPad. We want this bluetooth device to talk to 1 field in our app. (Which is on it's own view) All other textFields/areaFields we want to display the virtual keyboard.

这可能吗?
每当蓝牙设备配对它禁用屏幕键盘上。

Is this possible? Whenever the BT device is paired it disabled the on screen keyboard.

我们认为与1场从显示设备需要的输入视图前关闭蓝牙,然后把它背视图时取消了对的,但是这2个问题。而iPad将不会自动连接到该设备并没有办法关闭蓝牙而不使用私有API的。

We thought of turning bluetooth off before the view with the 1 field that needs its input from the device is displayed and then turning it back on when the view is removed, but this has 2 problems. The iPad will not automatically connect to the device and there is no way to turn bluetooth off without using private API's.

这是一个相关的问题:
 屏幕键盘上的部队表明,当蓝牙键盘连接
这还没有得到一个满意的答案。

This is a related question: Force on screen keyboard to show when bluetooth keyboard connected that has not yet got a satisfactory answer.

任何帮助将大大AP preciated

Any help will be greatly appreciated

干杯
菲尔

推荐答案

埃里卡丧盾发现通过发送GraphicsServices事件带回键盘的一种方式。帖子: HTTP:// WWW。 tuaw.com/2010/06/02/hacksugar-bringing-back-the-on-screen-keyboard/~~V 见链接到源$ C ​​$ C。发送GSEvents可能不是AppStore的准备,但也许值得一试。

Erica Sadun found a way of bringing back the keyboard by sending a GraphicsServices event. Post: http://www.tuaw.com/2010/06/02/hacksugar-bringing-back-the-on-screen-keyboard/ see link to source code. Sending GSEvents might not be AppStore ready, but maybe worth a try.

这篇关于蓝牙HID设备和放大器; iOS的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆