Je souhaite appeler la méthode willAnimateRotationToInterfaceOrientation lorsque mon application démarre, comment puis-je forcer l'exécution de cette méthode? Il n'y a que quand je tourne invoquaient appareil maintenant :(Force la méthode willAnimateRotationToInterfaceOrientation
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
Un détail ... lorsque l'appareil est en mode horizontal, il est appelé, mais quand je commence avec le dispositif en mode vertical cette méthode n'est jamais appelé :(