我目前在一个iOS项目中使用Three20。我已经让TTLauncherView显示了几个图标。然而,我不能让他们像Facebook应用程序那样以动画的方式打开视图。我试过了:
[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:@"sb://launcher"] applyAnimated:YES]];以及
[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:URL.absoluteString] applyTransition:UIViewAnimationTransitionCurlDown]];我在这个文档上也找不到任何东西:https://github.com/facebook/three20/blob/60340d76780ac5ab8a5dc853e3577b1c854eb6e0/src/Three20/TTNavigator.h
有什么帮助吗?
谢谢!
发布于 2010-12-05 19:08:23
这应该是可行的。我刚刚在我的代码中尝试了一下,向下卷曲的过渡效果和预期的一样。以下是当用户点击启动器中的图标时执行的代码:
- (void)launcherView:(TTLauncherView*)launcher didSelectItem:(TTLauncherItem*)item {
[[TTNavigator navigator] openURLAction:[[[TTURLAction actionWithURLPath:item.URL] applyTransition:UIViewAnimationTransitionCurlDown] applyAnimated:YES] ];}
希望这能有所帮助。
https://stackoverflow.com/questions/4328465
复制相似问题