2017-04-19 9 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

関連する問題