In my application I want to push a different view from the ViewWillAppear of my current view. Application is running but I am getting a message in console is that
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
Can you help me.
In absence of some requested code I'll take a guess that you push your new viewController with the animated flag to YES. In that case set your previous ViewControllers transition to nonanimated. In other words(code):
[self.navigationController pushViewController:firstViewController animated:NO];
in its (firstViewController) ViewWillAppear:
[self.navigationController pushViewController:secandViewController animated:YES];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.