[英]Phonegap developer on Ipad ios 8.4.1 is always in portrait orientation
I've downloaded the phonegap developer from the App Store to test my application on Ipad ( 4th generation ) with ios version 8.4.1 and the orientation doesn't seem to change to landscape mode and it's always in portrait mode. 我已经从App Store下载了phonegap开发人员,以在ios版本8.4.1的Ipad(第4代)上测试我的应用程序,方向似乎未更改为横向模式,并且始终处于纵向模式。
I've checked if the Ipad was on orientation locked, but it wasn't and then i've downloaded the app from build.phonegap.com , the landscape orientation mode works as expected. 我检查了Ipad是否处于方向锁定状态,但是没有,然后我从build.phonegap.com下载了该应用程序,横向模式按预期工作。
Downloaded the phonegap developer with Samsung Galaxy tab with android and tried to change it to landscape mode and it worked, so i thought that must be the phonegap developer with the Ipad or with this ios version ( 8.4.1 ). 使用Android的Samsung Galaxy选项卡下载了phonegap开发人员,并尝试将其更改为横向模式,并且可以正常工作,因此我认为必须是使用Ipad或此ios版本(8.4.1)的phonegap开发人员。
Tried to change my config.xml
file and tried to force the landscape mode 试图更改我的
config.xml
文件并尝试强制使用横向模式
<preference name="orientation" value="landscape" />
but it continued to display the portrait orientation mode only. 但它继续仅显示纵向模式。
So if anyone could give me more information about this issue or any possible solution i would be very much appreciated! 因此,如果有人可以给我更多有关此问题或任何可能解决方案的信息,我将不胜感激! Thanks in advance.
提前致谢。
In the new config.xml
write 在新的
config.xml
写
<preference name="orientation" value="landscape" />
inside to 里面到
<platform name="ios">
Example for iOS: 适用于iOS的示例:
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<preference name="orientation" value="landscape" />
</platform>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.