2010-12-01 5 views
2

Je travaille actuellement avec Three20 dans un projet iOS. J'ai le TTLauncherView affichant avec quelques icônes. Cependant, je ne peux pas voir pour les amener à ouvrir leurs vues d'une manière animée comme avec l'application Facebook. J'ai essayé:Faire des objets animés ouverts de TTLauncherView

[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:@"sb://launcher"] applyAnimated:YES]]; 

ainsi que

[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:URL.absoluteString] applyTransition:UIViewAnimationTransitionCurlDown]]; 

Je peux trouver rien sur cette documentation: https://github.com/facebook/three20/blob/60340d76780ac5ab8a5dc853e3577b1c854eb6e0/src/Three20/TTNavigator.h

Toute aide?

Merci!

Répondre

4

Cela devrait fonctionner. J'ai juste essayé ceci dans mon code et la transition de boucle fonctionne comme prévu. Voici le code qui est exécuté lorsque l'utilisateur tape une icône dans le lanceur:

- (void)launcherView:(TTLauncherView*)launcher didSelectItem:(TTLauncherItem*)item { 
[[TTNavigator navigator] openURLAction:[[[TTURLAction actionWithURLPath:item.URL] applyTransition:UIViewAnimationTransitionCurlDown] applyAnimated:YES] ]; 

}

Hope this helps.