开发者

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]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜