iOS11-“;打开蓝牙;提示无效

iOS11-“;打开蓝牙;提示无效,ios,bluetooth,ios11,core-bluetooth,cbcentralmanager,Ios,Bluetooth,Ios11,Core Bluetooth,Cbcentralmanager,我正在应用程序中使用蓝牙与iBeacons(位置服务)协作 从iOS11开始,通过控制中心关闭蓝牙时,我的蓝牙提示不会显示 但是,当我在设置应用程序中关闭蓝牙时,会出现提示 我正在将cbcentralmanagementshowpoweralertkey设置为YES 下面是我初始化CBCentralManager的代码: _bluetoothManager =[[CBCentralManager alloc] initWithDelegate:self

我正在应用程序中使用蓝牙与iBeacons(位置服务)协作

从iOS11开始,通过
控制中心关闭蓝牙时,我的蓝牙提示不会显示

但是,当我在
设置应用程序中关闭蓝牙时,会出现提示

我正在将
cbcentralmanagementshowpoweralertkey
设置为
YES

下面是我初始化
CBCentralManager
的代码:

_bluetoothManager =[[CBCentralManager alloc]
                    initWithDelegate:self
                    queue:dispatch_get_main_queue()
                    options:@{CBCentralManagerOptionShowPowerAlertKey: @(YES)}];
CentralManagerDipDateState:(CBCentralManager*)central
获取蓝牙状态时,我从
设置应用程序和
控制中心关闭蓝牙时,都会获得相同的关闭状态。
但只有通过
设置关闭时才会出现提示

通过控制中心关闭蓝牙时,如何使“打开蓝牙”提示生效


我能想到的唯一解决办法是将
cbcentralmanagementshowpoweralertkey
设置为
NO
,然后创建一个自定义对话框以打开
设置应用程序
。无法在iOS 11上直接打开蓝牙设置页面

你在这上面找到什么了吗?