方式 隐藏导航栏

- (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];
}

}

 

posted @ 2016-08-27 09:49  牵着蜗牛走的我  阅读(581)  评论(0编辑  收藏  举报