gpt4 book ai didi

jquery - 在 Jquery Mobile 或 PhoneGap 中禁用自动旋转

转载 作者:行者123 更新时间:2023-12-03 18:28:22 25 4
gpt4 key购买 nike

虽然移动设备的跨平台开发这么好。没有一个简单的选项可以禁用自动旋转或锁定到一个方向,即纵向或横向。

Jquery Mobile、PhoneGap、XUI 中是否有任何地方?

如果是的话请帮忙。这让我发疯。

最佳答案

完成上面的答案。

在 iPhone 上将其添加到 -info.plist:

<dict>
`.....
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
..........
</dict>

在 Android 上到 AndroidManifest.xml

<activity   ........      android:screenOrientation="portrait">

关于jquery - 在 Jquery Mobile 或 PhoneGap 中禁用自动旋转,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6052400/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com