导航栏返回不隐藏

2016-09-06  本文已影响0人  b36fd6c5af15

#pragma mark - UINavigationControllerDelegate

-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated{

   BOOL isShowBar = [viewController isKindOfClass:[self class]];

   [self.navigationController setNavigationBarHidden:isShowBar animated:YES];

}

上一篇 下一篇

猜你喜欢

热点阅读