AVCaptureDevice videoZoomFactor always Out of Range
问题 I'm trying to set the zoom level of a camera by this code: AVCaptureDevice *videoDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; if ([videoDevice lockForConfiguration:nil]) { float newzoom=1.3; videoDevice.videoZoomFactor = newzoom; [videoDevice unlockForConfiguration]; } This code doesn't not works in ios 7(it works in ios 9), it cause always an exception: Terminating app due to uncaught exception 'NSRangeException', reason: 'videoZoomFactor out of range' I can't find