制作TTLauncherView打开动画项目
我目前正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该有效。我刚刚在我的代码中尝试了这一点,并且卷曲向下过渡的效果与预期一致。以下是当用户点击启动器中的图标时执行的代码:
希望这
会有所帮助。
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:
}
Hope this helps.