In CBPeripheralManager, how to know if user push a

2019-08-07 13:24发布

I'm making BLE connection between iPhone and device with CBPeripheralManager.

If Central tried to pair with peripheral, Bluetooth pairing alertController pops up and user can choice which one there're going to use. Most of them will push a connect button.

But is there a way to know when user push a cancel button?

Delegate API would be good but I couldn't find it.

1条回答
可以哭但决不认输i
2楼-- · 2019-08-07 13:46

I'm not sure, but maybe didFailToConnectPeripheral method of CBCentralManagerDelegate is a good place to handle your case.

查看更多
登录 后发表回答