self.navigationController.delegate =self;
- (void)navigationController:(UINavigationController*)navigationController willShowViewController:(UIViewController*)viewController animated:(BOOL)animated {
// 判断要显示的控制器是否是自己
BOOLisShowHomePage = [viewControllerisKindOfClass:[selfclass]];
[self.navigationController setNavigationBarHidden:isShowHomePage animated:YES];
}
网友评论