制作TTLauncherView打开动画项目

发布于 2024-10-05 02:38:12 字数 733 浏览 1 评论 0原文

我目前正在 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/third20/blob/60340d76780ac5ab8a5dc853e3577b1c854eb6e0/src/Three20/TTNavigator.h

有帮助吗?

谢谢!

I'm currently working with Three20 in an iOS project. I've got the TTLauncherView displaying with a few icons. However, I can't see to get them to open their views in an animated fashion as with the Facebook app. I've tried:

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

as well as

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

I also can't find anything on this documentation: https://github.com/facebook/three20/blob/60340d76780ac5ab8a5dc853e3577b1c854eb6e0/src/Three20/TTNavigator.h

Any help?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清引 2024-10-12 02:38:12

这应该有效。我刚刚在我的代码中尝试了这一点,并且卷曲向下过渡的效果与预期一致。以下是当用户点击启动器中的图标时执行的代码:

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

希望这

会有所帮助。

This should work. I just tried this in my code and the curl down transition works like expected. Here is the code which gets executed when the user taps an icon in the launcher:

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

}

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文