2011-02-14 3 views
0

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é :(

Répondre

0

Pourquoi ne pas simplement définir votre orientation sur UISupportedInterfaceOrientations dans le fichier Info.plist?

Questions connexes