2017-09-30 3 views

Répondre

0

Après avoir fait Xcode 9 suggestion de prise en démarrant la fonction d'écriture

 func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) { 

    code 

} 

suggéré et je remplacé

  func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!) { 

avec

  func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) { 

Maintenant, il a été appelé.

+0

La chose inhabituelle ne fonctionnait pas a été excepté même si elle n'était pas écrite dans le bon format pour Swift4. – Hope