Note that there are some explanatory texts on larger screens.

plurals
  1. POUINavigationController 'corrupted navigation bar' issue
    text
    copied!<p>I'm having serious problems getting my navigation controller to work and have tried pretty much every related question on this website.</p> <p>My problem is that when I perform a segue programmatically, there appears to be a transition in the navigation bar, but the view doesn't change. I see the following errors instead:</p> <pre><code>2013-10-22 13:47:30.059 App[2236:a0b] nested push animation can result in corrupted navigation bar 2013-10-22 13:47:30.411 App[2236:a0b] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted. 2013-10-22 13:47:30.501 App[2236:a0b] Unbalanced calls to begin/end appearance transitions for </code></pre> <p>My storyboard looks like this:</p> <p><img src="https://i.stack.imgur.com/2lGxF.png" alt="enter image description here"></p> <p>In LoginViewController we perform a segue based on some condition:</p> <pre><code>- (void)viewDidAppear:(BOOL)animated { [super viewDidAppear]; NSString* appState = [AppConfig getAppState]; if ([appState isEqualToString:APP_STATE_WAITING]) { [self performSegueWithIdentifier:@"Load" sender:self]; } else if ([appState isEqualToString:APP_STATE_REGISTRATION_AVAILABLE]) { [self performSegueWithIdentifier:@"SignUp" sender:self]; } } </code></pre> <p>In LoadingViewController we wait for a response from a web service before doing:</p> <pre><code>- (void)segueToWaitingList:(NSUInteger)behind inFront:(NSUInteger)inFront { [MosaycOptions setAppState:APP_STATE_WAITING]; dispatch_async(dispatch_get_main_queue(), ^{ [self performSegueWithIdentifier:@"Waiting" sender:self]; }); } </code></pre> <p>And it is that segue that gives me the problem. The nav bar transitions but the view does not and we see the following errors printed out:</p> <pre><code>2013-10-22 13:47:30.059 App[2236:a0b] nested push animation can result in corrupted navigation bar 2013-10-22 13:47:30.411 App[2236:a0b] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted. 2013-10-22 13:47:30.501 App[2236:a0b] Unbalanced calls to begin/end appearance transitions for </code></pre> <p>The app doesn't crash, but no segue occurs, it doesn't transition to the waiting list view but simply stays on Loading and prints the error to console. When I press back rather than moving back to the login screen I get the following blank screen:</p> <p><img src="https://i.stack.imgur.com/p919R.png" alt="enter image description here"></p> <p>If I press back again it crashes with this error: <a href="http://pastebin.com/7mCyeQv9" rel="nofollow noreferrer">http://pastebin.com/7mCyeQv9</a></p> <p>Something is clearly getting messed up with the navigation stack, however i've inspected it using the debugger and it looks absolutely fine, everything gets pushed as normal. I can't for the life of me figure it out. This is just a standard navigation controller setup that i've used before.</p> <p>Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload