How to conform to CBCentralManagerDelegate Protocol?

前端 未结 5 590
后悔当初
后悔当初 2021-01-18 13:31

I am trying to initialize a central manager instance to make an app with Bluetooth connectivity.

This is part of my code:

class ViewController: UIVie         


        
5条回答
  •  孤城傲影
    2021-01-18 14:12

    You need to at least provide this function in your class:

    func centralManagerDidUpdateState(_ central: CBCentralManager) {
        <#code#>
    }
    

提交回复
热议问题