Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在iOS 10中,为什么;检索连接的外围设备和服务“;没有用吗?_Ios_Bluetooth_Ios10 - Fatal编程技术网

在iOS 10中,为什么;检索连接的外围设备和服务“;没有用吗?

在iOS 10中,为什么;检索连接的外围设备和服务“;没有用吗?,ios,bluetooth,ios10,Ios,Bluetooth,Ios10,在iOS 10中,为什么“retrieveConnectedPeripheralsWithServices”没有用处? 当我在ios10中调用此方法时(我确定系统至少连接了一个外围设备),它返回0个元素。但在ios9中,它返回一些由系统连接的外围设备! 我不知道为什么! 非常感谢 您是否已尝试将NSBluetooth外围设备描述码添加到您的Info.plist?是的,我已添加..您是否尝试将NSBluetooth外围设备描述码添加到您的Info.plist?是的,我已添加。。

在iOS 10中,为什么“retrieveConnectedPeripheralsWithServices”没有用处? 当我在ios10中调用此方法时(我确定系统至少连接了一个外围设备),它返回0个元素。但在ios9中,它返回一些由系统连接的外围设备! 我不知道为什么!
非常感谢

您是否已尝试将NSBluetooth外围设备描述码添加到您的Info.plist?是的,我已添加..您是否尝试将NSBluetooth外围设备描述码添加到您的Info.plist?是的,我已添加。。