Comment utiliser le type UIViewAnimationTransition
dans l'une des transitions UINavigation
/TabBar
?Animation de transition UINavigation/TabBar
1
A
Répondre
5
Seule façon que j'ai trouvé est de désactiver la construction dans les animations de transition, et utiliser votre propre. J'utilise quelque chose comme ce qui suit pour un UINavigationController:
UIViewAnimationTransition trans = UIViewAnimationTransitionCurlUp;
[UIView beginAnimations: nil context: nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition: trans forView: [delegate window] cache: YES];
[navController pushViewController:detailController animated:NO];
[UIView commitAnimations];
2
Non, vous ne pouvez pas.
(Pour UINavigationController there's a private-pushViewController:transition:forceImmediate:
.)
+1 Bonne solution de contournement. – kennytm