草庐IT

previewPhotoSampleBuffer

全部标签

swift - 使用自定义相机拍照 iOS 11.0 Swift 4.更新错误

我的应用程序中有一个自定义相机,它工作正常,但在新更新后我收到此错误:'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)'wasdeprecatediniOS11.0:Use-[AVCapturePhotofileDataRepresentation]instead.这是我遇到错误的行:guardletimageData=AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer:photoSampleBuff

swift - 使用自定义相机拍照 iOS 11.0 Swift 4.更新错误

我的应用程序中有一个自定义相机,它工作正常,但在新更新后我收到此错误:'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)'wasdeprecatediniOS11.0:Use-[AVCapturePhotofileDataRepresentation]instead.这是我遇到错误的行:guardletimageData=AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer:photoSampleBuff