- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated{ BOOL hiddenAnimate = NO; NSInteger count = ((BaseTabBarViewController *)viewController.tabBarController).delayIndex; if (count == 2) { hiddenAnimate = YES; } BOOL isShowHomePage = [viewController isKindOfClass:[SecondViewController class]]; [self setNavigationBarHidden:isShowHomePage animated:hiddenAnimate]; }作者:酱油不爱醋 链接:http://www.jianshu.com/p/7bec9ea95c86 來源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
导航栏渐变方案三:隐藏
最新推荐文章于 2024-01-06 14:28:07 发布