Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/108.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何触发像照相机应用程序一样的闪光?_Iphone_Ios_Flash_Avcapturedevice_Avcapture - Fatal编程技术网

Iphone 如何触发像照相机应用程序一样的闪光?

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会使您的闪光灯最亮 可以找到进一

我尝试进行flash的方式如下:

1) 召唤

2) 0.1秒后我打电话

[device setTorchMode:AVCaptureTorchModeOff];
[device setFlashMode:AVCaptureFlashModeOff];

问题是,当闪光发生时,它比照相机应用程序中的那个要暗得多。我不能让那个LED灯照得那么亮。是否有其他方法使此闪光灯尽可能亮?

您可能需要尝试
设置器chmodeonwithlevel:error:
。将第一个参数设置为1会使您的闪光灯最亮

可以找到进一步的文件

[device setTorchMode:AVCaptureTorchModeOff];
[device setFlashMode:AVCaptureFlashModeOff];