我正在使用 tabGroup 进行申请。
但是,当我旋转设备屏幕时,即使我在 tiapp.xml 中这样设置,屏幕也不会改变
是否无法旋转选项卡应用程序?
<iphone>
<orientations device="iphone">
<orientation>Ti.UI.PORTRAIT</orientation>
<orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
</orientations>
<orientations device="ipad">
<orientation>Ti.UI.PORTRAIT</orientation>
<orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
<orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
</orientations>
</iphone>
最佳答案
尝试在 window 属性中提供 orientationModes
。
var win1 = Ti.UI.createWindow({
backgroundColor : 'red',
orientationModes : [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.PORTRAIT]
});
它对我有用。
关于ios - 钛合金上的选项卡应用横向模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33234503/