Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/97.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 EAAccessory showBluetoothAccessoryPickerWithNameFilter方法始终显示为空且无法列出设备_Ios_External Accessory - Fatal编程技术网

Ios EAAccessory showBluetoothAccessoryPickerWithNameFilter方法始终显示为空且无法列出设备

Ios EAAccessory showBluetoothAccessoryPickerWithNameFilter方法始终显示为空且无法列出设备,ios,external-accessory,Ios,External Accessory,我试图使用showBluetoothAccessoryPickerWithNameFilter:nil completion:nil方法在我的应用程序中显示选择器,但它始终显示空列表。我已经在我的应用程序中包含了协议字符串。如果我使用设备的设置页面,我可以看到我的MFI设备,并配对和连接到它。但它拒绝在选择器生成的警报框中显示它。有什么帮助吗?我正在使用iOS 7.0 [[EAAccessoryManager sharedAccessoryManager] showBluetoothAccess

我试图使用showBluetoothAccessoryPickerWithNameFilter:nil completion:nil方法在我的应用程序中显示选择器,但它始终显示空列表。我已经在我的应用程序中包含了协议字符串。如果我使用设备的设置页面,我可以看到我的MFI设备,并配对和连接到它。但它拒绝在选择器生成的警报框中显示它。有什么帮助吗?我正在使用iOS 7.0

[[EAAccessoryManager sharedAccessoryManager] showBluetoothAccessoryPickerWithNameFilter:nil completion:^(NSError *error) {
    if (error) {
        NSLog(@"error :%@", error);
    }
    else{
        NSLog(@"You make it! Well done!!!");
    }
}];

[[eAccessoryManager sharedAccessoryManager]connectedAccessories]是否返回任何内容?是的。它可以返回我连接的附件列表。但现在我正试图通过这个选择器完成配对。