Je comprends que vous pouvez choisir quelles orientations soutenir, mais si je veux que mon orientation paysage soit quelque peu différente de mon portrait, comment puis-je coder pour cela?Comment coder l'orientation paysage dans l'iPhone?
1
A
Répondre
0
Vous pouvez utiliser cette méthode:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscape);
}
Si vous souhaitez ouvrir votre application directement en mode paysage, vous devez faire ceci:
1. Ouvrez votre Info.plist d'application.
2. Ajoutez une nouvelle ligne et définissez Key comme Orientation d'interface initiale.
3. Saisissez le champ Valeur, Paysage (bouton d'accueil gauche).
4. Enregistrez-le.
Vous pouvez changer le bouton d'accueil gauche bouton droit ...
maison Comme votre application démarre automatiquement en mode paysage :)
Questions connexes
- 1. Comment coder l'orientation paysage dans l'iPhone?
- 2. Comment coder dans l'installeur ClickOnce?
- 3. /Comment coder Constantes dans Rails 3 Application
- 4. Comment coder cette relation dans SQLAlchemy?
- 5. Comment coder un bouton vert dans UIActionSheet?
- 6. Comment faire pour coder hex8 dans c?
- 7. Comment coder jquery dans le codeigniter
- 8. Comment coder correctement HREF d'ancrage
- 9. comment coder le texte chiffré
- 10. Comment coder les données xml
- 11. Comment coder pour le multitouch
- 12. Paysage UIView dans un UITabBarController
- 13. Paysage UISplitViewController
- 14. comment changer le mode paysage
- 15. Rotation Monotouch dans Portrait/Paysage
- 16. mode paysage dans tamia/Cocos2d
- 17. Comment coder un sitemap XML valide
- 18. paysage NavigationController et portrait
- 19. Mode Paysage iPhone Monotouch
- 20. Rendre l'orientation paysage UIView dans UIViewController?
- 21. Comment coder un compilateur en C?
- 22. Rails - comment coder 'may appartment to?'
- 23. iphone pushviewcontroller au paysage
- 24. UIAlertView en mode paysage
- 25. iPhone - App paysage seulement
- 26. Coder la question architecturale
- 27. comment coder un programme ip tracer dans c?
- 28. Comment coder un contrôle Shart/Graph dans iOS?
- 29. Comment coder C dans une machine x64 bits?
- 30. Comment puis-je coder JSON un tableau dans VB.NET?
Dupe de http://stackoverflow.com/questions/3420039/how- do-i-code-pour-le-paysage-orientation-dans-iphone –