在我的一个视图控制器中,假设 A,我有以下内容:
OnbViewController *on = [[OnbViewController alloc] initWithNibName:nibName bundle:nil];
onboardingTutorial.delegate_ = self;
self.test = on
UINavigationController *nController = [[UINavigationController alloc] initWithRootViewController:self.test]
[self presentModalViewController:nController]
[nController release];
然后在 OnbViewController 里面我推到了导航控制器:
[self.navigationController pushViewController:someViewController];
然后在 didSelectRowForIndexPath: 我调用了一个委托,它是 A,在我调用的委托函数中,我尝试通过执行以下操作再次推送:
[self.test pushViewController:someOtherViewController];
然后这给了我这个错误:
nested push animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
Unbalanced calls to begin/end appearance transitions for <someOtherViewController: 0x6f942e0>.
任何的想法?