for (UIViewController *controller in self.navigationController.viewControllers) { NSLog(@"%@",controller.nibName); }