如何NSLog()外设?

时间:2012-11-29 23:51:59

标签: ios ios6 bluetooth-lowenergy cbperipheral cbcentralmanager

我无法确定哪些外围设备通常会使我能够正确地使用NSLog()。

- (void)centralManager:(CBCentralManager *)central didRetrievePeripherals:(NSArray *)peripherals {
  NSLog(@"discovered peripherals: %@", howToListPeriphalsForDebugging);
}

由于

1 个答案:

答案 0 :(得分:0)

尝试更改:

NSLog(@"discovered peripherals: %@", howToListPeriphalsForDebugging);

要:

NSLog(@"discovered peripherals: %@", peripherals);