Just started using Xcode 4.5 and I got this error in the console:
Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewCont
Probably, like me, you have a wrong root viewController
I want to display a ViewController
in a non-UIViewController
context,
So I can't use such code:
[self presentViewController:]
So, I get a UIViewController:
[[[[UIApplication sharedApplication] delegate] window] rootViewController]
For some reason (logical bug), the rootViewController
is something other than expected (a normal UIViewController
). Then I correct the bug, replacing rootViewController
with a UINavigationController
, and the problem is gone.