模拟器中的iPhone相机 [英] iPhone camera in simulator

查看:96
本文介绍了模拟器中的iPhone相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在模拟器中使用iPhone相机测试代码?

Is there a way to test code using iPhone camera in the simulator?

(必须有人写过东西-您可以有一个替代组件来模拟相机)

(Somebody must have written something - you could have a replacement component that simulates the camera)

推荐答案

在模拟器中,您可以访问一些示例照片库图像.

In the simulator there are some sample photo library images that you can access.

使用:UIImagePickerControllerSourceTypePhotoLibrary

Use: UIImagePickerControllerSourceTypePhotoLibrary

这篇关于模拟器中的iPhone相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆