how to define a selector in swift3 for an override method
问题 I want to define a selector in CBPeripheralDelegate, which is func peripheral(peripheral: CBPeripheral, didUpdateValueForCharacteristic characteristic: CBCharacteristic, error: NSError?) . In swift3, it is renamed to peripheral(_: didUpdateValueFor:error) , and it is same as the func peripheral(peripheral: CBPeripheral, didUpdateValueForDescriptor descriptor: CBDescriptor, error: NSError?) So when I try to define a selector like this #selector(CBPeripheralDelegate.peripheral(_