@objc func launchCoreML() { let settings = AVCapturePhotoSettings() let prevIEwPixelType = settings.availablePrevIEwPhotopixelFormatTypes.first let prevIEwFormat = [ kCVPixelBufferPixelFormatTypeKey as String: prevIEwPixelType,kCVPixelBufferWIDthKey as String: 160,kCVPixelBufferHeightKey as String: 160 ] as [String : Any] settings.prevIEwPhotoFormat = prevIEwFormat cameraOutput.capturePhoto(with: settings,delegate: self)}
我有一个错误说:
Value of type ‘AVCapturePhotoSettings’ has no member
‘availablePrevIEwPhotopixelFormat’.
我正在使用Xcode 9的测试版.
解决方法 在beta 4中,这被重命名为__availablePrevIEwPhotopixelFormat.我还没看过beta 5. 总结以上是内存溢出为你收集整理的swift4 – ‘AVCapturePhotoSettings’类型的值没有成员’availablePreviewPhotoPixelFormatTypes全部内容,希望文章能够帮你解决swift4 – ‘AVCapturePhotoSettings’类型的值没有成员’availablePreviewPhotoPixelFormatTypes所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)