【问题标题】:Making TTLauncherView open animated items使 TTLauncherView 打开动画项
【发布时间】:2010-12-01 19:53:24
【问题描述】:

我目前正在一个 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

有什么帮助吗?

谢谢!

【问题讨论】:

    标签: ios4 three20 ttlauncherview ttlauncheritem


    【解决方案1】:

    这应该可以。我刚刚在我的代码中尝试了这个,并且向下卷曲的过渡按预期工作。以下是用户点击启动器中的图标时执行的代码:

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

    }

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多