48 lines
1.0 KiB
Objective-C
Executable File
48 lines
1.0 KiB
Objective-C
Executable File
//
|
|
// FirstViewController.m
|
|
// Talk
|
|
//
|
|
// Created by xuzs on 22/10/11.
|
|
// Copyright (c) 2022年 xuzs. All rights reserved.
|
|
//
|
|
|
|
#import "BaseNavigationController.h"
|
|
#import "HKHTextField.h"
|
|
//#import "MainTabBar.h"
|
|
#import "UIView+AutoLayout.h"
|
|
#import "UI.h"
|
|
|
|
|
|
|
|
@interface BaseNavigationController ()
|
|
|
|
|
|
|
|
@end
|
|
|
|
@implementation BaseNavigationController
|
|
|
|
- (void)viewDidLoad {
|
|
//[super viewDidLoad];
|
|
// Do any additional setup after loading the view, typically from a nib.
|
|
//self.navigationController.navigationBar.backgroundColor = [UIColor clearColor];
|
|
self.navigationBar.barTintColor = [UIColor colorWithRed:55/255. green:143/255. blue:232/255. alpha:1];//#378fe8
|
|
self.navigationBar.barStyle = UIBarStyleBlackTranslucent;
|
|
|
|
|
|
}
|
|
|
|
|
|
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
|
|
if (self.viewControllers.count > 0) {
|
|
//第二级则隐藏底部Tab
|
|
viewController.hidesBottomBarWhenPushed = YES;
|
|
|
|
|
|
}
|
|
[super pushViewController:viewController animated:animated];
|
|
}
|
|
|
|
|
|
@end
|