在迁移Swift 4之后,已经停止调用以下函数。我找不到原因。
func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!) {
Code
}发布于 2017-09-30 09:23:33
在编写Xcode 9之后,启动编写函数,提出建议
func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
code
}建议和我代替
func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!) {使用
func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {现在,它被称为。
https://stackoverflow.com/questions/46501287
复制相似问题