【发布时间】:2012-09-14 00:54:40
【问题描述】:
此代码允许确定当前的蓝牙状态:
CBCentralManager* testBluetooth = [[CBCentralManager alloc] initWithDelegate:nil queue: nil];
switch ([testBluetooth state]) {....}
但是,当 [[CBCentralManager alloc] init...] 发生时,如果蓝牙关闭,系统会向用户弹出警报。
有什么方法可以在不打扰我的用户的情况下检查蓝牙状态?
【问题讨论】:
标签: ios bluetooth alert status