2017-04-19 108 views
0

我正在爲iPad的鈦合金應用程序工作,並且我支持所有屏幕方向,但是我只在橫向左側顯示相機上的自定義覆蓋圖。我試着設置orientationModes:[Ti.UI.LANDSCAPE_LEFT]但沒有效果。每當我改變方向時,覆蓋層都在旋轉。 我的問題是我如何鎖定橫向模式下的窗口方向?如何僅在iPad上的橫向顯示攝像頭覆蓋圖

謝謝。

回答

0

您是否嘗試在tiapp.xml文件中添加以下內容?

 <key>UISupportedInterfaceOrientations~ipad</key> 
     <array> 
      <string>UIInterfaceOrientationLandscapeLeft</string> 
      <string>UIInterfaceOrientationLandscapeRight</string> 
     </array> 

希望這會有所幫助。

+0

感謝您的回覆,但在tiapp.xml中我啓用了所有方向,並且我只想將相機覆蓋圖顯示在橫向上。 UISupportedInterfaceOrientations〜ipad的 UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown

相關問題