【问题标题】:Which devices support remote control event in IOSIOS中哪些设备支持远程控制事件
【发布时间】:2013-02-06 08:04:47
【问题描述】:

我正在尝试从蓝牙设备(Apple 无线键盘等)执行功能。我在按键时实现了 UIControlEvent,但没有收到任何事件。是否可以通过单击蓝牙设备上的任何按钮来接收事件?

【问题讨论】:

    标签: iphone ios5 xcode4


    【解决方案1】:

    使用蓝牙 LE 应该是可能的。您必须实施 *- (void)peripheral:(CBPeripheral *)peripheral didDiscoverServices:(NSError )error 的 CBPeripheralDelegate 协议。在您的设备添加外围设备并且方法 discoverService: 被发送后,此消息将发送到委托对象

    【讨论】:

      猜你喜欢
      • 2013-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-22
      • 1970-01-01
      相关资源
      最近更新 更多