2017-04-19 2 views
0

Je travaille sur une application Titanium pour iPad et je suis compatible avec toutes les orientations de l'écran, mais j'ai une superposition personnalisée sur l'appareil photo que je souhaite afficher uniquement en orientation paysage gauche. J'ai essayé avec la mise en orientation des modes: [Ti.UI.LANDSCAPE_LEFT] mais cela n'a aucun effet. Chaque fois que je change d'orientation, la superposition est en rotation. Ma question est comment puis-je verrouiller l'orientation de la fenêtre en mode paysage?Comment afficher la superposition de la caméra en mode paysage sur iPad

Merci.

Répondre

0

Avez-vous essayé d'ajouter ce qui suit dans votre fichier tiapp.xml?

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

Espérons que cela aide.

+0

Merci pour votre réponse, mais dans le tiapp.xml j'ai toutes les orientations activées, et je veux juste l'overlay de la caméra à afficher en mode paysage. UISupportedInterfaceOrientations ~ ipad UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown