I'm in the process of migrating an App to the current iOS SDK. Its root controller is UINavigationController
with another UINavigationController
as first view controller.
The application now crashes with EXC_BAD_ACCESS
caused by some kind of infinite recursion, but I can't make sense of the strack trace. As far as I can tell, nothing has changed expect some project settings to make it compile on the current SDK.
I created a new Navigation-based Application and added a nested UINavigationController
, which also crashed the application. Is nesting UINavigationController
s generally a bad idea?
Any hints what might be causing this or how to interpret the stack trace and debug the problem are greatly appreciated.
pushViewController:animated:
will even throw an exception if you pass it a navigation controller. Perhaps you should open a separate question about how better to structure your view controllers and UI flow. – Justin Spahr-SummersUINavigationController
. I'll see if I can restructure my app. – Daniel Hepper