如何获取导航栏控制器push进去的控制器

2016-07-28  本文已影响65人  天空没有太阳
[self.navigationController pushViewController:view animated:YES];

viewControllers:// The current view controller stack.

如何一个导航栏控制器push了十几个页面,你想获取这是几个页面的话,那么就可以通过* viewControllers*来查看。

另外还有一个属性可以获取childViewControllers,该属性也是返回一个数组,但是两者还是有些区别的。

This property does not include any presented view controllers. This property is only intended to be read by an implementation of a custom container view controller.

上一篇 下一篇

猜你喜欢

热点阅读