当编写代码时,不论是在TabbarController还是在Viewcontroller或者是NavagationController中任何一个页面写方法时,我们都可以使用以下方法获取程序正在展示的当前页 方法的声明: -(UIViewController*) currentViewController;