I am new to iOS development. I am trying to build an application with live video input with torch and maximum zoom turned on. This app will be used to scan small 2D data matrix barcodes from physical parts. The code I am using is the following:
if ([input.device lockForConfiguration:nil]) {
CGFloat zoomFactor = input.device.activeFormat.videoMaxZoomFactor;
[input.device rampToVideoZoomFactor:zoomFactor withRate:4.0];
[input.device unlockForConfiguration];
}
This isn't working at all for some reason. When I try to debug the lock works, so it runs through the zooming code but nothing actually happens in the application.
Any advices?