开发者

How to access EAAccessories?

开发者 https://www.devze.com 2022-12-17 18:55 出处:网络
eaManager = [EAAccessoryManager sharedAccessoryManager]; 开发者_Go百科[eaManager registerForLocalNotifications];
eaManager = [EAAccessoryManager sharedAccessoryManager];
开发者_Go百科[eaManager registerForLocalNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(gotDevice)  name:EAAccessoryDidConnectNotification object:nil];

[eaManager connectedDevices] is always empty.

How can I pair to a accessory?


You need to connect your iPhone to a Made for iPod program device which provides a protocol for being accessed by the External Accessory framework. There aren't many of those out there right now. I believe that TomTom's iPhone Car Kit is one of them, but I can't think of others.

0

精彩评论

暂无评论...
验证码 换一张
取 消