Bluetooth HID Device amp; iOS textFields(蓝牙 HID 设备iOS 文本字段)
问题描述
我们正在使用充当键盘的 BT 设备与 iPad 通话.我们希望这个蓝牙设备与我们应用程序中的 1 个字段对话.(这是自己的看法)我们要显示虚拟键盘的所有其他 textFields/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.
这可能吗?每当配对 BT 设备时,它都会禁用屏幕键盘.
Is this possible? Whenever the BT device is paired it disabled the on screen keyboard.
我们曾考虑在显示需要从设备输入的 1 字段的视图之前关闭蓝牙,然后在移除视图时将其重新打开,但这有两个问题.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.
任何帮助将不胜感激
干杯菲尔
推荐答案
Erica Sadun 找到了一种通过发送 GraphicsServices 事件来恢复键盘的方法.帖子:http://www.tuaw.com/2010/06/02/hacksugar-bringing-back-the-on-screen-keyboard/ 查看源代码链接.发送 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 文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:蓝牙 HID 设备iOS 文本字段


- Android - 拆分 Drawable 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01