J'ai une animation effectuée sur la keyWindow de l'application.Notifications d'orientation de l'iPad perdues lors de la transition pour keyWindow
[UIView beginAnimations:kAnimationLogin context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:window_ cache:NO];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:1.0];
[window_ addSubview:splitViewController_.view];
[UIView commitAnimations];
[loginViewController_.view removeFromSuperview];
Cela fonctionne bien. Ensuite, si l'utilisateur se déconnecte, la transition est inversée
[UIView beginAnimations:kAnimationLogout context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:window_ cache:NO];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:1.0];
[window_ addSubview:loginViewController_.view];
[UIView commitAnimations];
[splitViewController_.view removeFromSuperview];
Voici le problème. Maintenant, loginViewController_ et splitViewController_ ne reçoivent pas les notifications d'orientation. Pourquoi?
Voulez-vous dire qu'ils ne reçoivent pas les notifications de changement d'orientation après les animations. Les reçoivent-ils si les animations ne sont pas effectuées? – TechZen
oui, techZen, c'est le point, si je ne fais pas la transition le problème d'orientation n'apparaît pas mais si je le fais le problème commence. – emenegro