首页 > 代码库 > 方式 隐藏导航栏

方式 隐藏导航栏

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
if ([viewController isKindOfClass:NSClassFromString(@"PUUIImageViewController")]) {
[navigationController setNavigationBarHidden:YES animated:YES];
}
if ([viewController isKindOfClass:NSClassFromString(@"PUUIMomentsGridViewController")]) {
[navigationController setNavigationBarHidden:NO animated:YES];
}

}

技术分享

 

方式 隐藏导航栏