我有一个应用程序,它利用故事板中的UINavigation控制器来通过两个UITableViews进入细节视图。我想跳过第二个Table View并直接进入Detail View。当用户点击“后退”时,他们应该看到第二个表格视图。UINavigation以显示第三个视图
如果我使用
[self.navigationController pushViewController:secView animated:NO];
[self.navigationController pushViewController:thirdView animated:YES];
应用程序的错误了,我得到
nested push animation can result in corrupted navigation bar
2012-06-11 15:02:23.695 App[3853:f803] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
我已经试过
[self navigationController].viewControllers = [NSArray arrayWithObjects: dest, detView, nil];
[[self navigationController] popToViewController:detView animated:YES];
这一个效果不错,但我不能回去第一视图。后退按钮不见了。
请大家指点几句。
可我看到更多的代码? – self
检查这个答案:http://stackoverflow.com/questions/5525519/iphone-uinavigation-issue-nested-push-animation-can-result-in-corrupted-naviga – self