我有以下课程:
class Scanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate {}
它在类中实现了一个委托方法AVCaptureVideoDataOutputSampleBufferDelegate:
func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection)
{}
即使我将函数设置为private、fileprivate或internal,它仍然出现在 Xcode 的代码完成中:
有没有办法从课外使用隐藏这个调用?
