在 IOS 模拟器中访问摄像头

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12214333/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 19:58:04  来源:igfitidea点击:

Accessing camera in IOS Simulator

iphoneobjective-ciosxcodecocoa-touch

提问by Newbee

In my application, I have a preview option to show video captured in iPhone(camera), I am using now iPhone simulator, Is it possible to capture video frame in iPhone simulator and show it in any view. As I am new to this, I don't have any idea where to start. Any tutorial or link is very helpful...

在我的应用程序中,我有一个预览选项来显示在 iPhone(相机)中捕获的视频,我现在使用的是 iPhone 模拟器,是否可以在 iPhone 模拟器中捕获视频帧并在任何视图中显示它。因为我是新手,所以我不知道从哪里开始。任何教程或链接都非常有帮助...

thanks

谢谢

回答by iDroid

So far apple iPhone simulator don't have feature to connect to the system camera. Only way to see working camera application is to use real device

到目前为止,苹果 iPhone 模拟器没有连接到系统相机的功能。查看工作相机应用程序的唯一方法是使用真实设备