Sunday, 15 March 2015

objective c - How to delete discovered bluetooth devices on ios 7? -



objective c - How to delete discovered bluetooth devices on ios 7? -

i utilize beetee project find nearby bluetooth devices. good, if discovered device store somewhere, , cant find again. if device doesnt send bluetooth signal bluetooth manager write in log: btm: lost device "device_name" device_address

how can delete discovered devices?

they stored in dictionary:

@property (retain, nonatomic) nsmutabledictionary *currentavailabledevices;

if want delete 1 of them, can phone call the delegate method

- (void)removebluetoothdevice:(bluetoothdevice *)bluetoothdevice { [self.currentavailabledevices removeobjectforkey:bluetoothdevice.address]; [self.tableview reloaddata]; }

but sure approach makes sense?

objective-c ios7 bluetooth

No comments:

Post a Comment