jjzjj

focusPointOfInterestSupported

全部标签

ios 9 AVCaptureDevice 设置焦点

我正在尝试使用前置摄像头设置焦点。overridefunctouchesBegan(touches:Set,withEventevent:UIEvent?){letscreenSize=cameraView.bounds.sizeletframeSize:CGSize=view.frame.sizeiflettouchPoint=touches.first{varlocation:CGPoint=touchPoint.locationInView(cameraView)print("TapLocation:X:\(location.x),Y:\(location.y)")ifcamer