I have a MFi keyboard. It is already paired to the iPhone via bluetooth.

I want to programmatically get the name of the paired keyboard. I searched some forums and they say it's possible to do that...

But how do we get the name using "External Accessory"?

A sample code would help me a lot.

Thanks

有帮助吗?

解决方案

Initialize your EAAccessory object and then call the property name on your accessory object

NSLog(@"%@",connectedAccessory.name);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top