今天爱分享给大家带来iOS14 最新隐私适配 [相机和麦克风]完美解决方案,希望能够帮助到各位。
相机和麦克风
 iOS14 中 App 使用相机和麦克风时会有图标提示以及绿点和黄点提示,并且会显示当前是哪个 App 在使用此功能。我们无法控制是否显示该提示。

会触发录音小黄点的代码示例:
AVAudioRecorder *recorder = [[AVAudioRecorder alloc] initWithURL:recorderPath settings:nil error:nil]; [recorder record];
触发相机小绿点的代码示例:
AVCaptureDeviceInput *videoInput = [[AVCaptureDeviceInput alloc] initWithDevice:videoCaptureDevice error:nil];
AVCaptureSession *session = [[AVCaptureSession alloc] init];
if ([session canAddInput:videoInput]) {
    [session addInput:videoInput];
}
[session startRunning];
			    						    						    						    					    		
			    					    				    					    			 原文链接:http://blog.itblood.com/45.html,转载请注明出处。		    			
		            
![深度复兴[最終结局]赞助 AI版[PC+安卓/9.37G/更新]Depth’s Revival [神作SLG/汉化/完结]](/wp-content/uploads/replace/2025/09/30/f056d54061ad0bd2f8177bdab47f0785.webp)