So, my app works perfectly except that it freezes after a while of using it in the simulator. Any ideas?

The following error occurs:

App Game[6352:60b] *** Assertion failure in -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:], /SourceCache/UIKit/UIKit-2935.137/UIWindowController.m:223
2014-04-18 11:32:43.237 App Game[6352:60b] *** WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: <NSInternalInconsistencyException> Attempting to begin a modal transition from <ViewController: 0x15f625180> to <GADWebAppViewController: 0x15f53e5d0> while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear to know the current transition has completed
2014-04-18 11:32:49.603 App Game[6352:60b] Warning: Attempt to present <Game: 0x15f659030> on <ViewController: 0x15f625180> while a presentation is in progress!
有帮助吗?

解决方案

Just dealt with this problem. I was using the SimpleAuth to authenticate Instagram for an app, and found out that I was calling the SimpleAuth authorize method twice. The second call was causing this error by trying to present it's own modal before the first call had dismissed it's own.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top