0

我有一个tabBar应用程序与两个选项卡。每个标签都有自己的navigationController这种方式来实现:UINavigationController动画

FirstViewController *firstController = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil]; 
UINavigationController *firstNavController = [[UINavigationController alloc] initWithRootViewController:firstController]; 

SecondViewController *secondController = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil]; 
UINavigationController *secondNavController = [[UINavigationController alloc] initWithRootViewController:secondController]; 

tabBar.viewControllers = [NSArray arrayWithObjects:firstNavController, secondNavController, nil]; 

当我要推一个视图到一个选项卡我用这个:

[self.navigationController pushViewController:activityController animated:YES]; 

,当我在推看法,我想弹出我使用的视图:

[self.navigationController popViewControllerAnimated:YES]; 

推动画作品不错,但在弹出动画只有顶部栏(NavigationController)获取动画和视图,而无需动画消失。什么可能是错误的?

+0

你是从主线程调用它吗? –

+0

是的,我不知道我能做些什么来使它工作 – sergiocg90

回答

0

尝试使用而不是[self.navigationController popViewControllerAnimated:YES]; [self.navigationController popToRootViewControllerAnimated:YES];

,并告诉我,如果这个工程。记住netsted导航控制器。

+0

不,我已经尝试过,没有任何成功。只有顶部导航控制器栏获取动画,而不是视图... – sergiocg90

+0

通过放置断点来检查你的deallac方法 – Saad

+0

前来聊天在iphone ipad房间 – Saad

相关问题