【发布时间】:2016-08-02 15:04:20
【问题描述】:
我使用此方法- (void)scanForPeripheralsWithServices:(nullable NSArray<CBUUID *> *)serviceUUIDs options:(nullable NSDictionary<NSString *, id> *)options; 开始扫描我的外围设备。但有时它不起作用。我没有收到外围设备不时发现的回调。
从didFinishLaunchingWithOptions 开始扫描似乎并不总是有效。
【问题讨论】:
-
你需要显示更多代码
-
它最初是否会发现设备并在一段时间后停止,或者回调没有像您预期的那样频繁调用?
标签: ios objective-c bluetooth core-bluetooth