【发布时间】:2018-01-16 22:42:48
【问题描述】:
我正在与CoreBluetooth 合作,我正在使用CBCentralManager 及其代表。但问题是,当我在iOS 11-Beta 4 中运行我的代码时,我在蓝牙开启时在委托- (void)centralManagerDidUpdateState:(CBCentralManager *)central 中处于关机状态。
当我关闭蓝牙然后重新打开时,它会重新打开电源。它在 iOS 10 和 9 中也可以正常工作。外围设备也可以正常工作,并且可以使用 iOS 11-Beta 4 中的 LightBlue 应用程序发现它。我不确定为什么会这样。
【问题讨论】:
标签: ios objective-c bluetooth cbcentralmanager