Desktops
Q: AVCaptureDevice iOS 10 class methods does not found
I am facing an error which is: No known method for selector 'defaultDeviceWithDeviceType:mediaType:position:'
Documentation for this method is given at: https://developer.apple.com/reference/avfoundation/avcapturedevice/2361508-defau ltdevicewithdevicetype
My code is:
AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithDeviceType: AVCaptureDeviceTypeBuiltInDuoCamera
mediaType: AVMediaTypeVideo
position: AVCaptureDevicePositionBack];
Here are all the version details:
MacOS: 10.11.5
xCode: 8.0 beta
iOS: 10.0.1
iPhone 6, iOS 10, null
Posted on Sep 22, 2016 12:57 AM