Iphone 如何触发像照相机应用程序一样的闪光?
我尝试进行flash的方式如下: 1) 召唤 2) 0.1秒后我打电话Iphone 如何触发像照相机应用程序一样的闪光?,iphone,ios,flash,avcapturedevice,avcapture,Iphone,Ios,Flash,Avcapturedevice,Avcapture,我尝试进行flash的方式如下: 1) 召唤 2) 0.1秒后我打电话 [device setTorchMode:AVCaptureTorchModeOff]; [device setFlashMode:AVCaptureFlashModeOff]; 问题是,当闪光发生时,它比照相机应用程序中的那个要暗得多。我不能让那个LED灯照得那么亮。是否有其他方法使此闪光灯尽可能亮?您可能需要尝试设置器chmodeonwithlevel:error:。将第一个参数设置为1会使您的闪光灯最亮 可以找到进一
[device setTorchMode:AVCaptureTorchModeOff];
[device setFlashMode:AVCaptureFlashModeOff];
问题是,当闪光发生时,它比照相机应用程序中的那个要暗得多。我不能让那个LED灯照得那么亮。是否有其他方法使此闪光灯尽可能亮?您可能需要尝试
设置器chmodeonwithlevel:error:
。将第一个参数设置为1会使您的闪光灯最亮
可以找到进一步的文件
[device setTorchMode:AVCaptureTorchModeOff];
[device setFlashMode:AVCaptureFlashModeOff];