xil3
xil3

Reputation: 16449

UIWindowController Assertion failure

This is the full error I'm receiving:

* Assertion failure in -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:], /SourceCache/UIKit_Sim/UIKit-1447.6.4/UIWindowController.m:186

And this is the line of code it's occurring on:

[self presentModalViewController:navigationController animated:YES];

Completely stumped on this one - it just started happening, and I haven't changed anything.

Upvotes: 2

Views: 2542

Answers (2)

Flexicoder
Flexicoder

Reputation: 8511

I had an issue where on an iPad I was transitioning to a FormSheet and in the ViewDidLoad I was attempting to autologin, if that failed I wanted to present another "offline" modal view. On the iPhone this was working ok, but on the iPad the transition was taking longer and the code was failing as the view wasn't ready.

I moved the code to viewDidAppear and it worked ok.

Just incase the clean option didn't work for you.

Upvotes: 0

xil3
xil3

Reputation: 16449

It appears that I fixed it by cleaning all the targets...

Upvotes: 3

Related Questions