iOS 6通过输入类型文件使用相机时出现问题 [英] Issue with iOS 6 when using camera via input type file

查看:87
本文介绍了iOS 6通过输入类型文件使用相机时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为ipad写一个webapp,我需要用相机拍照。我的解决方案是使用input type =file,但问题是当iOS调出相机时它会自动改变方向。当我完成拍摄并返回我的应用程序后,应用程序将以纵向模式显示,即使我在横向模式下持有ipad。有没有办法让ipad在调用相机时不改变方向?

I´m writing a webapp for an ipad and on it I need to take a picture using the camera. My solution is using input type="file" but the problem is that when iOS brings up the camera it automatically changes the orientation. When I finish taking the picture and it returns to my app, the app is displayed on portrait mode, even though I'm holding the ipad on landscape mode. Is there a way to make the ipad not change orientation when invoking the camera?

推荐答案

今天我们遇到了同样的问题。更糟糕的是,如果设备被锁定在横向模式下,则无法将其从portret模式中移除。在您按下拍摄图像按钮后,即使在显示相机应用程序之前,页面的方向也会直接更改。我们仍在研究如何解决这个问题,但直到现在我认为这是Apple的功能。

Today we encountered the same problem. Even worse if the device is locked in landscape mode, it is impossible to get it out of portret mode. The orientation of the page is changed directly after you press 'take image' button, even before the camera app is showing. We are still working out how to solve this but until now I think it is an Apple 'feature'.

这篇关于iOS 6通过输入类型文件使用相机时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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