Navigation Stack in iPhone
Can I view the contents of the navigation stack? Will I be able to display the stack contents on the ter开发者_如何学Pythonminal, and if so, how?
Yes. UINavigationController has a viewControllers property that returns the nav stack. You can view this in your console by setting a breakpoint in one of your view controllers and typing this at the gdb prompt:
po [[self navigationController] viewControllers]
精彩评论