“嵌套的推送动画可能会导致导航栏损坏”当调用 launcherView: didSelectItem:
在 Three20 TTCategory 示例中,我尝试修改 LauncherViewTestController 以启动测试视图控制器。我创建了一个 TestContrller 类并注册为
[map from: @"tt://test"
parent: @"tt://launcherTest"
toViewController: [TestController class]
selector: nil
transition: 0];
然后在 launchView:didSelectItem: 中,我尝试导航到此测试视图控制器
- (void)launcherView:(TTLauncherView*)launcher didSelectItem:(TTLauncherItem*)item {
TTNavigator *navigator = [TTNavigator navigator];
[navigator openURLAction:[ [TTURLAction actionWithURLPath:@"tt://test"] applyAnimated:NO]];
}
但是,我不断收到“错误嵌套推送动画可能导致导航栏损坏”,并且导航栏无法正常工作标题堆栈彼此重叠。我对 iPhone 开发非常陌生,有人可以给我一些帮助吗?
编辑,我在下面发布了我的答案,我需要映射到 SharedViewController 而不是 ViewController。
In the three20 TTCategory example, I am trying to modify the LauncherViewTestController to launch an test view controller. I created a TestContrller class and register as
[map from: @"tt://test"
parent: @"tt://launcherTest"
toViewController: [TestController class]
selector: nil
transition: 0];
Then in launchView:didSelectItem:, I try to navigate to this test view controller
- (void)launcherView:(TTLauncherView*)launcher didSelectItem:(TTLauncherItem*)item {
TTNavigator *navigator = [TTNavigator navigator];
[navigator openURLAction:[ [TTURLAction actionWithURLPath:@"tt://test"] applyAnimated:NO]];
}
However, I keep getting "error nested push animation can result in corrupted navigation bar", and the navigation bar is not working properly with title stack on each other. I am very new to iphone development, can anybody give me some help here?
Edit, I posted my answer below, I need map to SharedViewController instead ViewController.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是我正在使用的 TTLauncher 的一个工作示例,它基于 TTLauncherItem 的操作 URL 推送控制器。在应用程序委托中注册控制器很简单,因此我只包含启动器控制器的功能。
Here's a working example of TTLauncher i'm using and it's pushing controllers based on TTLauncherItem's action URL. registering the controllers in the app delegate is trivial, so i only including the functions for the launcher controller.
我发现问题是我需要映射到共享视图控制器而不是视图控制器。
i find the problem is that I need map to a sharedviewcontroller instead of viewcontroller.