2014-02-17 176 views
1

我觉得cordova/phonegap文档非常混乱,特别是与ios有关。科尔多瓦/ phonegap文档混淆

例如:在http://cordova.apache.org/docs/en/3.3.0/config_ref_index.md.html 它说:

Orientation allows you to lock orientation and prevent the interface from rotating in response to changes in orientation. 

可能的值是默认的,景观,或纵向。例如:

<preference name="Orientation" value="landscape" /> 

其不工作。

另外,我发现的插件都没有通过编译(主要是缺少文件问题)。

我有一种感觉,这是一个版本控制的问题,但没有一篇文章提到任何有关它的事情。

所以我的问题:

  1. 如何锁定方向是什么?

  2. 如何找到正确的文档? 例如我提供的链接具有'3.3.0',我猜的意思是版本,但是我找不到v2中config xml的文档。

+0

Cordova 2.x中没有'config.xml',为什么不更新到3.x?由于cli工具的使用,它更容易使用。 – jgillich

+0

3.x dosent在纹波上工作,对我来说phonegap是无用的,如果我无法在大调查中调试,我该如何调试3.x? –

+0

如果您从npm安装最新版本的Ripple,它支持Cordova 3.x. 看看这里(http://www.raymondcamden.com/index.cfm/2013/11/5/Ripple-is-Reborn),了解如何通过npm安装它。 – Kastell

回答

0

在3.3 - IOS - 锁定方位在* -info.plist通过设置来完成:

<key>UISupportedInterfaceOrientations~ipad</key> 
<array> 
    <string>UIInterfaceOrientationPortrait</string> 
</array> 

注:从默认生成的plist你应该删除不必要的值。