I ran into a similar situation in my code, and the message said:
Nested push animations can damage the navigation bar
Completing the navigation transition in an unexpected state. The navigation tree's visibility tree> may be damaged.
My discovery of this problem was that I clicked on two view controllers several times one after another, and both were animated.
In your case, it seems that you can display multiple view controllers with animation several times.
Therefore, while one view goes through the animation, you should not run the animation on another view.
I also found that if I turned off the animation on one view, the error message disappeared.
In my case, it was a problem with the flow logic, because I was not going to press two view controllers one by one. One of them was inserted into the logic of the switch, and the other after its completion.
Hope this helps someone.
Vishal Chaudhry May 19 '11 at 1:49 a.m. 2011-05-19 01:49
source share