我正在使用"ExternalAccessory框架".我在新的iPad Air上尝试使用我的应用时遇到了问题.
当我尝试显示蓝牙选择器时出现此错误:
CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth
Run Code Online (Sandbox Code Playgroud)
蓝牙开启.Picker返回此错误:
Error Domain=EABluetoothAccessoryPickerErrorDomain Code=3 "The operation couldn’t be
completed.
Run Code Online (Sandbox Code Playgroud)
我的应用程序可以在每台Apple设备上运行,除了新的iPad Air.
我可以连接并与我的设备通信.只有在我拨打蓝牙选择器时才会出现问题.
问题也出现在EADemo的修改版本中.
我添加了这个功能.
- (void)searchDevice {
[[EAAccessoryManager sharedAccessoryManager] showBluetoothAccessoryPickerWithNameFilter:nil completion:nil];
}
Run Code Online (Sandbox Code Playgroud)
当我打电话给它时,砰!同样的错误.仅适用于iPad Air
有没有办法在 showBluetoothAccessoryPickerWithNameFilter:completion: 上捕获取消按钮事件?
完成块在同一个执行 时间 (方式)如果我点击一个设备和取消按钮。
谢谢你。