使用导航栏代理 隐藏导航栏
//隐藏导航栏
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
BOOL isSelf = [viewController isKindOfClass:[self class]];
[self.navigationController setNavigationBarHidden:isSelf animated:YES];
}
网友评论