Je dois prendre en charge uniquement l'orientation portrait dans mon application. Comment puis-je le faire? Je l'ai essayé d'ajouterPrise en charge de l'orientation portrait uniquement
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
et
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationPortrait;
}
Mais il does't aide - la vue tourne de toute façon.
Merci d'avance!
C'était vraiment la raison. Je suis désolé pour ma stupidité :( – Knodel