Start a new topic

Unable autofocus

Unable autofocus


Hi,

Is it possible to disable the autofocus ?

 

Thank you very much

Vincent

I succeeded in adding :

 

NSArray *devices = ;
NSError *error;
for (AVCaptureDevice *device in devices) {
if (() &&
( == AVCaptureDevicePositionBack) ) {
;
if () {
device.focusMode = AVCaptureFocusModeLocked;
NSLog(@"Focus locked");
}

;
}
}

 
Login or Signup to post a comment