在iPhone上使用PhoneGap的部队纵向 [英] Force portrait orientation on iPhone with phonegap
本文介绍了在iPhone上使用PhoneGap的部队纵向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要纵向我的应用程序,我tryed有:
I want portrait orientation for my application, I tryed with:
AndroidManifest.xml中:
AndroidManifest.xml:
<activity ... android:screenOrientation="portrait" ... android:configChanges="orientation| ..." />
和
config.xml文件:
and config.xml:
<preference name="orientation" value="portrait" />
这完美的作品我的Android手机上,但不能在iPhone 4。
That works perfectly on my android phone, but not on iPhone 4.
谢谢!
推荐答案
打开ProjectName'-Info.plist中文件中的X $ C $角
Open 'ProjectName'-info.plist file in Xcode.
在'支持的接口取向'阵列,保留只肖像模式的支持。
In 'Supported interface orientations' array, keep support for Portrait mode only.
像这个 -
那么你的PhoneGap应用程序将仅在波泰特模式在iPhone上运行。
then your phonegap app will run only in Portait Mode on iPhone.
这篇关于在iPhone上使用PhoneGap的部队纵向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文